Page 1 of 1

possible bug string format %G IM 6.8.6.8 Q16

Posted: 2013-08-07T09:16:39-07:00
by fmw42
The documentation on http://www.imagemagick.org/script/escape.php shows:

%G image size ( = %wx%h )
%P page (canvas) size ( = %Wx%H )

But %G reports the same values as %P which are the page size and the the image size

convert -size 500x500 xc:black -size 100x100 xc:white \
-geometry +200+300 -compose over -composite -trim -format "%G" info:
500x500

convert -size 500x500 xc:black -size 100x100 xc:white \
-geometry +200+300 -compose over -composite -trim -format "%P" info:
500x500

convert -size 500x500 xc:black -size 100x100 xc:white \
-geometry +200+300 -compose over -composite -trim -format "%wx%h" info:
100x100

Re: possible bug string format %G IM 6.8.6.8 Q16

Posted: 2013-08-07T10:27:35-07:00
by magick
%G is the original image size, when its first read, before any resizes.

Re: possible bug string format %G IM 6.8.6.8 Q16

Posted: 2013-08-07T18:11:31-07:00
by fmw42
magick wrote:%G is the original image size, when its first read, before any resizes.

I will modify the string formats documentation.