Page 3 of 3

Re: How to know the image's transparent space?

Posted: 2019-07-02T14:46:38-07:00
by fmw42
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?

Posted: 2019-07-02T14:59:12-07:00
by niyanwen
but if plus x,y offset equals image's full weight and height ? can we assume it is transparent?

Re: How to know the image's transparent space?

Posted: 2019-07-02T16:00:32-07:00
by snibgo
Try them:

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
There is no difference betwen "none" (transparent black) and "white".

Re: How to know the image's transparent space?

Posted: 2019-07-02T16:16:51-07:00
by fmw42
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.