OT: scaling images
Brian K. White
brian at aljex.com
Tue Aug 23 12:44:53 PDT 2011
On 8/23/2011 12:45 PM, Henry Arredondo wrote:
>
>
> -----Original Message-----
> From: filepro-list-bounces+hxarredondo=lkqcorp.com at lists.celestial.com [mailto:filepro-list-bounces+hxarredondo=lkqcorp.com at lists.celestial.com] On Behalf Of Barry Wiseman
> Sent: Monday, August 22, 2011 4:34 PM
> To: filepro-list at lists.celestial.com
> Subject: Re: OT: scaling images
>
> On 8/22/2011 5:12 PM, Bill Campbell wrote:
>> On Mon, Aug 22, 2011, Enrique Arredondo wrote:
>>> Hi,
>>>
>>> I need to rescale lots of images keeping the same ratio, the output has to
>>> be 1500x1500 and the problem I'm having is that if the image is 1500x634 ,
>>> I don't know how to make that 1500-634 pixel difference white. Any Ideas ?
>> I would look at the convert program which is part of the
>> ImageMagick package. It has many features, but I'm not sure if
>> that's a possibility.
>>
>> Bill
> Bill is absolutely correct, convert can do that for you. Haven't done it in some years, so I don't recollect enough to give you example syntax, but there are command-line args that will position the 1500x634 image on a 1500x1500 canvas and specify the color of the canvas.
> _______________________________________________
>
> Great!
>
> Where Can I download ImageMagick for SCO Unix ? I don't have the skunkware CD. Or should I get the source code and compile it ?
http://www.aljex.com/bkw/sco/#ImageMagick
Or I think JPR probably has a newer version by now.
I have used mine quite heavily for years on many boxes.
Be aware that it creates temp files in /usr/tmp. They can be quite large
and the occasional one may not get deleted and build up over time unless
you have a cron job deleting old files out of various temp directories.
Aside from the slow buildup of temp files from the occasional crashed
process over time, a very large batch job or very many concurrent jobs
may use a lot of space all at once too. If you have a small root
filesystem and work on a lot of images this may be a problem. I don't
remember if there is any way to tell IM to use a different path or if
it's hard coded because I only actually had a problem on one box one
time. Mostly I override the defaults at install time and don't install a
small root fs.
--
bkw
More information about the Filepro-list
mailing list