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?
Batch resample images
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Batch resample images
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
interesting.....
But I need to call convert manually for each of 1000 images...
But I need to call convert manually for each of 1000 images...
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Batch resample images
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