someone here at work scanned a lot of pictures. The scans are very
good looking but, unfortunately, size do vary a little bit.
It is out of question to rescan all the pictures as they are really
plenty of them and it took lots of time to do (several days actually).
We always keep one copy of the image in really high resolution, uncompressed,
as PNG, in some kind of database.
Then we use those hi-res PNG to generate lots of .JPGs, depending on the
need of our clients (it is, amongst other, for a Web application) and we
keep the hi-res pictures for when we need them.
The problem I have is that, to have some consistency in our pictures
database, I'd like to have all the image having the same width and height.
For the moment, they are all "nearly the same", but not the same.
For example :
[carrera@spyda /home/public/temp/] $ identify Scan000?.tif
Scan0003.tif TIFF 1230x1736 DirectClass 8-bit 6300kb 0.0u 0:01
Scan0006.tif TIFF 1233x1736 DirectClass 8-bit 6300kb 0.0u 0:01
Scan0007.tif TIFF 1237x1736 DirectClass 8-bit 6321kb 0.0u 0:01
Scan0008.tif TIFF 1237x1736 DirectClass 8-bit 6321kb 0.0u 0:01
Scan0009.tif TIFF 1240x1736 DirectClass 8-bit 6336kb 0.0u 0:01
I'd like them all to be, say, 1240x1744, using ImageMagick's convert
command line utility preferably (as all our images are already processed
using ImageMagick utilities).
If I try to "resize", it keeps the width/height ratio.
For example :
$ convert Scan0003.tif -resize 1240x1744 test.tif
$ identify test.tif
test.tif TIFF 1236x1744 DirectClass 8-bit 6322kb 0.0u 0:01
test.tif is 1236x1744 because resize, as explained in the docs, keeps
the "ratio" of the source image.
How can I stretch a picture using ImageMagick's convert utility ? (The
image won't be distorted at all, since it's always only a few pixels
out of 1000+ that are missing).
Thanks in advance for any help,