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
possible bug string format %G IM 6.8.6.8 Q16
Re: possible bug string format %G IM 6.8.6.8 Q16
%G is the original image size, when its first read, before any resizes.
- 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
magick wrote:%G is the original image size, when its first read, before any resizes.
I will modify the string formats documentation.