photo album : imagemagick (part -1)

Imagemagick thumbnail csh Tech Notes album
 Santanu Misra / November 4, 2005
65 words ; 1 minute read

Quick and dirty way of creating photo album with imagemagick, creating images with black border as it looks good for all

#!/bin/cshset files = `echo [0-9]*.jpg`echo $filesforeach file ( $files )set w = `identify -format  "%w" $file`set h = `identify -format  "%h" $file`if ($w > $h) then  convert $file -thumbnail 500X -bordercolor black -border 1 /tmp/foo100/$fileelse  convert $file -thumbnail X500 -bordercolor black -border 1 /tmp/foo100/$fileendifend
comments powered by Disqus

Related Blog Posts

Happy Holidays
Happy Holidays

**Wish you all happy & prosperous New Year.**Its time to write almost last entry for this year. For quite a while was thinking to write about 2005 year diary. Hmm…………not able to write with this dull and grey sky and no need to mention the cold at Paris but wait………… seems some ray of light is trying to reach my desk which I do not want to loose, hope that

Thank God its Friday
Thank God its Friday

It has been a while I wrote any post. Well, after quite a long time I met with Tapas a good old friend from Bay Area. The meeting was short while having dinner at our place; got some updates on other friends in Bay Area. Yesterday, was last French class before 2 week vacations so we went out for drinks after the class. I never had this kind of social events where you have to speak in French and you are not ashamed of your mistakes.

Metro in Paris
Metro in Paris

Living in Paris and not travelling in Metro has lots of demerits. Like usual I am going to start with the traffic jams, one way roads, unavailability of parking, high parking tickets and very unusual sense of Parisian driving skills. These only list if you have a car and travelling of your own. But what about those who are taking other mode of smart transports like Bus, Tram, Bicycle, Rollerblade or just walk to work or work from home?