Can I Batch remove transparency on TIF files?

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
omegads
Posts: 1
Joined: 2017-01-13T11:15:12-07:00
Authentication code: 1151

Can I Batch remove transparency on TIF files?

Post by omegads »

Good day, i just discovered this applications so i do not know nothing... just for information :3

can this program do a batch convert, the issue is that i have around 300 pictures for a catalog and i was asked to remove the transparency because the catalog was autoconverting the transparency to black...

If it does, could you please tell me how could i do it..

Regards
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Can I Batch remove transparency on TIF files?

Post by Bonzo »

Probably; I would read this and post more info: https://www.imagemagick.org/discourse-s ... f=1&t=9620
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Can I Batch remove transparency on TIF files?

Post by fmw42 »

If all your images are in one folder, then you can use mogrify to flatten all the images in a folder against some common background color. See http://www.imagemagick.org/Usage/basics/#mogrify

For one image, try

Code: Select all

convert image -background somecolor -flatten result
If that works, then use mogrify, but be sure to save a backup or write the output to a new directory.

What image format are the input images? If PSD or TIF, you may need some defines if these files have adjustment or group layers. See http://www.imagemagick.org/script/comma ... php#define

Please always provide your IM version and platform since syntax may differ. Also an example image would help. All this information is needed and that is why bonzo sent you to that link to see how to ask questions on this form.
Post Reply