OT: scaling images
Marc Brumlik
tsi-inc at comcast.net
Mon Aug 22 14:52:56 PDT 2011
On 08/22/2011 03:49 PM, 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 ?
Assuming this is being done on Linux, I wrote a nifty script that not only converts images in a variety of ways, but also multimedia files a d a while lot more. It can be run from the command line, as a nautilus-script, or as a nautilus-action (just select and right-click your files).
In the case of your images, it will batch-convert. You specify the output format (jpg, gif, etc, or a combination) and your desired resolution along the longer axis (the shorter is taken care of for you, maintaining the aspect ratio). There are other options along the way, like jpg quality. It will scale up or down automatically, producing your desired resolution each time, in output files named for the resolution selected.
The functions in this script that manipulate images rely mostly on ImageMagick.
There's a lot to describe, but it will do what you need (and lots of other things too).
You can get it here:
http://gnome-look.org/content/show.php/Audio%2BVideo%2BImage%2BText%2BISO+Convert?content=92533
I've posted a couple other (less ambitious) scripts to that site as well. Have a look.
-- Marc
More information about the Filepro-list
mailing list