Off-browser Image, Animation and Movie processing in a web framework

  toucheatout  2006-03-26 17:24  Web  

Favicon generation

Simple with ImageMagick, the convert utility makes it in one simple step:

convert original.png -resize 16x16! favicon.ico

The '!' isn't mandatory if your image already is square. If it is not, this '!' prevents convert to preserve the original height/width ratio (geometry specified is interpreted as maximum size in each axis by default).

Note: You can use the php system() function to invoke convert if allowed and imagemagick configured on the webserver.

The other possibility is to edit an image with The Gimp or another image processing software that knows about this image format.

Animated gif using gimp

Create an image with the first frame, then loop over:

  1. Create a new layer
  2. copy next frame, paste it in the newly created layer
  3. Anchor what is marked "floating selection"

Finally, save as gif and select "Save as an animation". Do not forget to specify the desired delay between frames.

 
Informatics


yro.slashdot.org - Your Rights online


nytimes.com New York Times - International


Informatic headlines