[Info-vax] ImageMagick for VMS

David Froble davef at tsoft-inc.com
Sun Feb 17 13:48:51 EST 2013


Bill Gunshannon wrote:
> 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
> 

No BATCH on weendoze, weendoze runs on clicks, not electricity ....



More information about the Info-vax mailing list