Re: Macro for ImageResize
Posted by
Carnë Draug on
Nov 19, 2010; 2:02pm
URL: http://imagej.273.s1.nabble.com/Macro-for-ImageResize-tp3686379p3686384.html
On 19 November 2010 12:16, Frank Walter <
[hidden email]> wrote:
> Michael,
>
> thank you very much. This works very easy, e.g.:
>
> convert * -resize '800x600' output.jpg
>
> or
>
> convert * -resize '800x600^' output.jpg
>
> if I want to keep the bigger size as minimum. Only question (off topic
> because imagemagick):
>
> how can I keep the original names?
>
> Thank you.
>
> Regards, franc
Hi Frank,
I wrote some time ago a perl script to do exactly that using image
magick. I adjusted them for your needs. One of them adjusts the size
to a certain ratio while the other to a specific value for width and
height. They take as arguments a list of directories and save the
images with exactly the same name. You'll need the package perlmagick
installed on ubuntu.
adjust by ratio
http://pastebin.com/6P61bQyRadjust by size
http://pastebin.com/DAXmJyZ5Carnë