Page 1 of 1

Batch resample images

Posted: 2009-02-26T07:17:57-07:00
by ziotibia81
Hello!!

I've 1000 images on a directory. Same images is 1200dpi, others 1700dpi, others 900dpi ecc ecc.
I need to resample all imaget at 600dpi but preserving dimensions.

If an image in 1200dpi was 40x40mm i need to resample it at 600dpi but dimension have to remain 40x40mm,
an other image is 60x60mm at 1700dpi and need to be converted as 60x60mm 600dpi ecc ecc....

Is possible using "convert" command?

Re: Batch resample images

Posted: 2009-02-26T10:44:13-07:00
by fmw42
ziotibia81 wrote:Hello!!

I've 1000 images on a directory. Same images is 1200dpi, others 1700dpi, others 900dpi ecc ecc.
I need to resample all imaget at 600dpi but preserving dimensions.

If an image in 1200dpi was 40x40mm i need to resample it at 600dpi but dimension have to remain 40x40mm,
an other image is 60x60mm at 1700dpi and need to be converted as 60x60mm 600dpi ecc ecc....

Is possible using "convert" command?

convert inputimage -density XX outputimage

where XX is your desired density

see http://www.imagemagick.org/script/comma ... hp#density

Re: Batch resample images

Posted: 2009-02-26T15:24:02-07:00
by ziotibia81
interesting.....
But I need to call convert manually for each of 1000 images... :(

Re: Batch resample images

Posted: 2009-02-26T16:10:35-07:00
by fmw42
ziotibia81 wrote:interesting.....
But I need to call convert manually for each of 1000 images... :(

Then use mogrify with -density.

see http://www.imagemagick.org/Usage/basics/#mogrify

Re: Batch resample images

Posted: 2009-02-26T23:55:22-07:00
by ziotibia81
:D

Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!