To generate the thumbnails:
for x in dcp*; do echo convert -scale 10% $x ${x/dcp/t}; done|sh
(leave off the |sh to check that the commands are sane)
To generate the text that goes in the index page:
identify t*| perl -ne '/(\d+\.jpg).*JPEG (\d+)x(\d+)/ && print "<a href=\"dcp$1\"><img src=\"t$1\" width=$2 height=$3></a>\n"'
You have to put all the rest of the HTML markup you need around the output of that. Adapt according to the filenames you've actually got, etc.
(no subject)
Date: 2002-07-02 05:25 am (UTC)(no subject)
I used ImageMagick.
Date: 2002-07-02 06:57 am (UTC)To generate the thumbnails:
for x in dcp*; do echo convert -scale 10% $x ${x/dcp/t}; done|sh(leave off the |sh to check that the commands are sane)
To generate the text that goes in the index page:
You have to put all the rest of the HTML markup you need around the output of that. Adapt according to the filenames you've actually got, etc.