Bug 149972

Summary: display -geometry doesn't work
Product: [Fedora] Fedora Reporter: Jonathan Kamens <jik>
Component: ImageMagickAssignee: Matthias Clasen <mclasen>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mk
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-25 05:40:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Kamens 2005-03-01 02:16:35 UTC
I have ImageMagick-6.0.7.1-4.

"display -geometry {width}x{height}+0+0 image.jpg" should display an
image, scaled to the specified width and height (aspect ratio
preserved), rooted at the top left corner of the screen.  It used to
do this.  The scaling part no longer works -- the specified with and
height are ignored and the image is displayed at full size.

Comment 1 Mogens Kjaer 2005-03-17 08:28:05 UTC
Use

display -resize {width}x{height}+0+0 image.jpg

instead.

Comment 2 Jonathan Kamens 2005-03-17 14:45:03 UTC
Yes, that's a workaround, but (a) that doesn't provide the same functionality 
as what -geometry is supposed to do, since -geometry is supposed to allow you 
to tell display to resize the image only if it needs to be resized to fit 
within the specified geometry, and -resize doesn't do that, and (b) -resize 
isn't even mentioned on the man page for display.  So there appears to be both 
a documentation problem and a functionality problem.


Comment 3 Mogens Kjaer 2005-03-17 15:58:28 UTC
man ImageMagick will tell you about the -resize options.

display -resize '640x480>' image.jpg

will scale the picture down to 640x480 if it is
larger than 640x480