Search found 3 matches
- 2018-01-13T20:55:43-07:00
- Forum: Users
- Topic: Check if an image has an alpha channel with IMv7
- Replies: 9
- Views: 6905
Re: Check if an image has an alpha channel with IMv7
Thanks for the help. I think I'll just do a -format "%A\n" and check for "Blend" or "True" (to support IMv6).
- 2018-01-13T06:39:29-07:00
- Forum: Users
- Topic: Check if an image has an alpha channel with IMv7
- Replies: 9
- Views: 6905
Re: Check if an image has an alpha channel with IMv7
Thanks for the suggestion. One issue with "channels" is that it can return many different values. For example, I tried it on a collection of 30k images and here's all the different values I got: cmyk, gray, graya, srgb, srgba. So in order to determine if the image has an alpha channel, I would have ...
- 2018-01-12T19:28:09-07:00
- Forum: Users
- Topic: Check if an image has an alpha channel with IMv7
- Replies: 9
- Views: 6905
Check if an image has an alpha channel with IMv7
In IMv6, I could do something like: identify -format '%A' *.png and it would give me True/False depending on whether the image has an alpha channel or not. But this doesn't seem to work with IMv7; instead it gives me "Blend" or "Undefined". Is there some way I can use to retrieve that information ...