Home > Programming & scripting > New pretty thumbnails for pici

New pretty thumbnails for pici

January 9th, 2007

Finally decided that php-gd was too much of a pain to deal with and installed imagemagick on my server.
The newly generated thumbnails for pici is really nice :)

Pictures below will look different in Internet Explorer 6 and below since it doesn’t allow png transparency

Im extremely pleased with this!

If anyone want the arguments for imagemagick for creating this then here they are. It’s really easy to modeify this and make a script to use this on a lot of pictures. I use python on my implementation at pici.se

convert \\
picture.jpg \\
-thumbnail 80x80 \\
-font /usr/share/fonts/truetype/freefont/FreeSerif.ttf \\
-pointsize 12 \\
-gravity South   -background white   -splice 0x18 \\
-draw "text 0,0 'resolution goes here'" \\
-bordercolor white  -border 3 \\
-bordercolor grey60 -border 1 \\
-background  none   -rotate 3 \\
-background  black  \\( +clone -shadow 50x4+4+4 \\) +swap \\
-background  none   -flatten \\
-depth 8  -quality 95 \\
thumbnail.png

Imagemagick is used for this

buffi Programming & scripting

  1. No comments yet.
  1. No trackbacks yet.