fmw42 wrote:what happens when you leave the [0] and run identify -format "%wx%h" /path/to/file
I just get „928x300“. Adding [0] I get „1856x600“ instead.
fmw42 wrote:Also what do you get from identify -verbose /path/to/file
I get (excerpt):
Code: Select all
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 928x300+0+0
Resolution: 100x100
[…]
Page geometry: 928x300+0+0
fmw42 wrote:How do you know that the size is twice as big as you think it should be? How did you measure the true size?
I used Photoshop CS4 to create the image. Additionally I used Firefox and the Apple Infobox to show the images dimensions.
fmw42 wrote:What version of IM are you using?
identify --version displays
Code: Select all
Version: ImageMagick 6.4.8-7 2009-09-28 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
fmw42 wrote:If you run the above commands outside of Ruby, what do you get. Might it be a Ruby on Rails issue?
I ran all commands from the command line (bash) to ensure that this is neither a Ruby nor a Rails issue.
fmw42 wrote:Can you post a link to your image? Then someone can run identify on it to verify what you have.
Yes, the image is found at
http://foto.olafschneider.de/pics/2005/ ... klaren.jpg
Thanks a lot for your detailed questions, I hope my answers help to solve the problem.
Olaf
[edited]:
The problem seems to exist for all jpegs. The calculation of gif images seems to be ok.