[Info-vax] ImageMagick for VMS

Bill Gunshannon billg999 at cs.uofs.edu
Sun Feb 17 11:35:01 EST 2013


In article <Cd7Us.154489$kX4.116304 at fx04.fr7>,
	ChrisQ <meru at devnull.com> writes:
> On 02/11/13 07:24, Paul Sture wrote:
> 
>> Making thumbnails with ImageMagick is easy.  I have in the past done
>> these in batch, no interactive editing required.
>>
>> There's a host of information here, including example commands:
>>
>> http://www.imagemagick.org/Usage/thumbnails/
>>
> 
> Here's one I wrote late last year for scaling digital camera images:
> 
> 
> # Imagemagick `convert' .JPG Images to 1024x768 & 120x90 Webpage Sizes
> # --------------------------------------------------------------------
> #
> # Check .JPG exists. If conversion done for that file, skip to next.
> # Repeat until all .JPG files in the directory processed. Input files
> # have .JPG suffix, output files have .jpg
> #
> for i in *.JPG
>     do
>     if [ -e $i ]
>     then
>        echo $i
>        FILE=`echo $i | sed s/[A-Za-z]// | cut -d. -f1`
>        if [ ! -e ${FILE}-1024x768.jpg ]
>        then
>           convert $i -resize 1024x768\> ${FILE}-640x480.jpg
>        fi
>        if [ ! -e ${FILE}-120x90.jpg ]
>        then
>           convert $i -resize 120x90\> ${FILE}-120x90.jpg
>        fi
>     fi
>     done
> 
> ImageMagick / convert can be quite slow, so best to run it on a fast
> machine if you have a lot of files and don't want to be there all day...
> 
> Regards,
> 
> Chris

Those of us who still remember BATCH wuold just run it overnight.  :-)

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
billg999 at cs.scranton.edu |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>   



More information about the Info-vax mailing list