Page 1 of 1

Resize TIF

Posted: 2019-04-26T06:13:40-07:00
by DXF
Hello
Newbie at ImageMagic, trying to solve resizeing of tif´s.
I got some files, that I like to resize, half of them is easy:

Originals: 27071x18712 pixels
Wished size 27071x18702

magick source_filename.tif -resize 27071x18702! new_filename.tif

The other half amount of files is trickier; I like the image to shrink to 27071x18702, but the file should keep the size.
It´s hard to explain. We use the tifs for Newspaper printing, and to compensate for fanout I need to shrink the images, half of them should align upwards and half of them downwards. Downwards is no problems, though the smaller image will be correct in the work flow, but the other one....
Create a new file, 27071x18712 and paste the shrinked file, aligned to the top?

Thanks

DXF

Using Windows 2016 DataCenter and ImageMagick 7.0.8-42 Q16 x64

Re: Resize TIF

Posted: 2019-04-26T09:20:06-07:00
by fmw42
Your question is not very clear. I think you will need to post example images and/or diagrams of what you are trying to do. Upload to some free hosting service and put the URLs here.

Re: Resize TIF

Posted: 2019-04-29T01:24:54-07:00
by DXF
I´m trying to find out a way to shrink a a tif in our workflow. We seperate pdf-files to cyan, magenta, yellow and black. We produce plates from the tifs. When we print with the plates, the paper stretches, and the colours don´t match on the paper. If I can find a way to shrink the image on the blue plates, when the paper strech, it will fit in to the other colours. On one side of the paper I solwed it, but on the other side the plates position must be moved AND shrinked.

https://imagizer.imageshack.com/img923/7962/cYI4VO.png

Re: Resize TIF

Posted: 2019-04-29T01:36:21-07:00
by SafetyCar
DXF wrote: 2019-04-26T06:13:40-07:00magick source_filename.tif -resize 27071x18702! new_filename.tif
There are many tools. You're probably trying to:
magick convert source_filename.tif -resize 27071x18702! new_filename.tif

Re: Resize TIF

Posted: 2019-04-29T10:09:59-07:00
by GeeMack
SafetyCar wrote: 2019-04-29T01:36:21-07:00There are many tools. You're probably trying to:
magick convert source_filename.tif -resize 27071x18702! new_filename.tif
Unless there is a specific need to emulate the behavior of IM version 6 you should not use "magick convert". Just use "magick" for IM version 7 to take advantage of the improvements.

Re: Resize TIF

Posted: 2019-04-29T10:46:04-07:00
by fmw42
I am still not sure what you are trying to do. If you want to resize an image smaller, but have it in a larger result, then use -extent with a transparent or other color background. Use -extent WxH+X+Y to position it where you want.

See https://imagemagick.org/Usage/crop/#extent

Re: Resize TIF

Posted: 2019-04-30T00:40:12-07:00
by DXF
This looks like it should do the work.
Thanks a lot.
Now I only have to find out how to use it in a automatic workflow...