Resize TIF

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
DXF
Posts: 3
Joined: 2019-04-26T05:53:28-07:00
Authentication code: 1152

Resize TIF

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Resize TIF

Post 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.
DXF
Posts: 3
Joined: 2019-04-26T05:53:28-07:00
Authentication code: 1152

Re: Resize TIF

Post 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
SafetyCar
Posts: 6
Joined: 2014-06-04T10:12:16-07:00
Authentication code: 6789

Re: Resize TIF

Post 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
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: Resize TIF

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Resize TIF

Post 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
DXF
Posts: 3
Joined: 2019-04-26T05:53:28-07:00
Authentication code: 1152

Re: Resize TIF

Post 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...
Post Reply