Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

Archived entries for image resize

Drupal: Imagemanipulation

Ich habe gerade zwei spannende Drupal Module entdeckt:

Smart Crop

Smart Crop is an imagecache action that crops based on entropy, which produces more pleasing results when cropping to a fixed aspect (for example it can help prevent cutting off people’s heads when cropping a portrait to a square.

und ImageField Focus

If you are using ImageField and ImageCache, you might have had hard times trying to get Scale And Crop to show what you actually want of your images.
That is what ImageField Focus was made for.
It allows you to tell ImageCache what portion of the image you want to focus to, and what portion you want to be cut out.

Die werde ich mal testen, denn das Problem abgeschnittener Köpfe hatte ich gerade auf einer Kunden Seite.

Adaptive Images

Matt Wilcox stellt eine weitere Methode vor Bilder automatisch an das Gerät anzupassen auf dem der User die Webseite sehen will.

Automatically adapts your existing HTML images for mobile devices. No mark-up changes needed. Just drop it in and forget about it.
The concept is fairly simple and works like this:

  • On page load a tiny bit of JavaScript in the <head> checks the size of the browser window and stores a cookie that contains the browser width.
  • A .htaccess rule on the server intercepts any requests for .jpg .gif or .png files which are not inside protected directories.
  • Matching requests are sent to a PHP script which checks to see if an appropriately sized cached version exists.

Joomla: Image Resizing

Das FBoxBot Plugin für Joomla muss ich dringend mal testen:

FBoxBot is a joomla bot/plugin. The main idea is to help the user to create easily thumbnails from any pictures, and when you click on the thumbnails a nice “lighbox-like” popup appears that show the image at its original size. So what makes this package so special ? First: I’ve written the associated popup script, frontbox, which I wanted to be lightweight, polyvalent, reliable. And Second: I made the process of creation of thumbnails easier than ever: inside your favorite wysiwyg editor insert a picture, resize “manually” (see picture on website), save, publish and the bot will do the remaining job for you ! But it has also some other nice features I discuss on the website …

Denn User sind ja grundsätzlich nicht in der Lage Bilder vor dem Uplaod auf die richtige Größe zu bringen…

Fluid Images

Auf A List Apart gibt es einen Auszug aus dem Buch Responsive Web Design der sich mit Fluid Images bechäftigt.

First discovered by designer Richard Rutter, this one rule immediately provides an incredibly handy constraint for every image in our document. Now, our img element will render at whatever size it wants, as long as it’s narrower than its containing element. But if it happens to be wider than its container, then the max-width: 100% directive forces the image’s width to match the width of its container.

Ich denke das Buch werde ich mir anschaffen, klingt spannend.

PHP: Image Manipulation

Ich habe gerade die PHP Bibliothek WideImage entdeckt:

WideImage is an object-oriented library for image manipulation. It requires PHP 5.2.x or 5.3.x with GD2 extension. It’s E_ALL + E_STRICT compliant and fairly well tested with Simpletest.

The library focuses on ease of use of the most common image operations. It provides a simple and unified way to loading and saving images from/to files, strings, database, uploads and URL addresses. Supports the most common image formats.

Und so sieht’s aus:

WideImage::load('big.png')->resize(50, 30)->saveToFile('small.jpg');
WideImage::load('pic.jpg')->crop('center', 'center', 90, 50)->output('png');

Cool, so was braucht man doch recht häufig. Und hier ist jemand dabei daraus ein library plugin für Joomla 1.6 zu schreiben. I like.



Copyright © 2004–2009. All rights reserved. – Impressum

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.