How to know the image's transparent space?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to know the image's transparent space?
My error. Snibgo is correct -- it could be any color. Any perfectly constant color will trim to 0x0.
Re: How to know the image's transparent space?
but if plus x,y offset equals image's full weight and height ? can we assume it is transparent?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to know the image's transparent space?
Try them:
There is no difference betwen "none" (transparent black) and "white".
Code: Select all
magick -size 10x10 xc:White -format %@ info:
magick: geometry does not contain image `' @ warning/attribute.c/GetImageBoundingBox/240.
0x0+10+10
magick -size 10x10 xc:None -format %@ info:
magick: geometry does not contain image `' @ warning/attribute.c/GetImageBoundingBox/240.
0x0+10+10
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to know the image's transparent space?
The +X+Y = +10+10 is off the image just past the last pixel (at +9+9). It is not the width and height. It is an offset.