imagemagick convert

November 26th, 2007
< wordpress primer | getting sh-t done >

hit esc to stop the animated gifs…
utilware.com.favicon.32x32.gif that’s just a little bit annoying isn’t it? sometimes a bash script i wrote would wget a favicon.ico file from a site, convert the ico to a gif, and instead of getting a 16×16 image i’d get what you see here… a 32×32 blinking gif.

utilware.com.favicon.gif the fix is rather simple. i just had to add -size 16×16 and -resize 16×16 to my convert command and tada! the image is now properly sized and not causing my eyes to bug out.

i had to sit here and grin at myself when i first went to fix my script. i pull up convert’s manpage and the first thing i saw was this. i’m really hoping that the manpage was updated way, way, way after i originally wrote my script. or else, this is a bad case of rtfm.

worldcat.org.favicon.48x48.gif i know how much you loved the animated gif, i just found another one in the bonqlinks image pool… enjoy.

man i can’t wait till this post is hidden deep in the database somewhere.

similar posts
    0
 

Leave a Reply