How to find tiff files which have transparency???

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
foler
Posts: 2
Joined: 2015-05-19T03:23:37-07:00
Authentication code: 6789

How to find tiff files which have transparency???

Post by foler »

I need to find and move all tiff files in folder which have any kind of transparency. Do I can do this with IM?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to find tiff files which have transparency???

Post by snibgo »

Code: Select all

convert in.tif -format %[opaque] info:
This returns "true" if the image is fully opaque, or "false" if there is any transparency.

A script can loop through files, and do whatever you want with images that have transparency.
snibgo's IM pages: im.snibgo.com
foler
Posts: 2
Joined: 2015-05-19T03:23:37-07:00
Authentication code: 6789

Re: How to find tiff files which have transparency???

Post by foler »

do you want to help me further? how to move all tifs with transparency or layers into some subfolder?
Post Reply