possible bug string format %G IM 6.8.6.8 Q16

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug string format %G IM 6.8.6.8 Q16

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug string format %G IM 6.8.6.8 Q16

Post by magick »

%G is the original image size, when its first read, before any resizes.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug string format %G IM 6.8.6.8 Q16

Post by fmw42 »

magick wrote:%G is the original image size, when its first read, before any resizes.

I will modify the string formats documentation.
Post Reply