montage -label "%w %h" regression
Posted: 2007-01-26T09:11:36-07:00
Hi,
starting with 6.2.5 (?) the command
montage -size 120x120 -label "%f\n%w x %h\n%b" *.jpg index.png
gives "wrong" results for width and hight. Digging through various documentation I realize that the width and height are probably correct in the sense that it's the width and height of the loaded image, but in contrast to the filename (%f) it is not the width and hight of the original file (which was the former behavior and is expected).
Using
montage -label "%f\n%w x %h\n%b" *.jpg index.png
gives correct results, but is so much slower for directories with large and many JPG-files that it turns montage unusable (for one of my sample directories 9s compared to 111s).
With 6.2.3 the first command gave the expected results so the change must have been either in 6.2.4 or 6.2.5.
My suggestion: either revert to the old behavior or add %W and %H for width and height of the original file.
Thanks, Bernhard
starting with 6.2.5 (?) the command
montage -size 120x120 -label "%f\n%w x %h\n%b" *.jpg index.png
gives "wrong" results for width and hight. Digging through various documentation I realize that the width and height are probably correct in the sense that it's the width and height of the loaded image, but in contrast to the filename (%f) it is not the width and hight of the original file (which was the former behavior and is expected).
Using
montage -label "%f\n%w x %h\n%b" *.jpg index.png
gives correct results, but is so much slower for directories with large and many JPG-files that it turns montage unusable (for one of my sample directories 9s compared to 111s).
With 6.2.3 the first command gave the expected results so the change must have been either in 6.2.4 or 6.2.5.
My suggestion: either revert to the old behavior or add %W and %H for width and height of the original file.
Thanks, Bernhard