Page 1 of 1

Resolution being divided by 10000

Posted: 2010-10-06T13:38:44-07:00
by DaleyKD
http://upload.meisel.com/WebAccess/Uplo ... tFile/3613

When I do:

Code: Select all

identify -format "%x x %y" 8883527.jpg
I get:
0.024 PixelsPerInch x 0.024 PixelsPerInch
The EXIF information shows:
exif:XResolution: 240/10000
exif:YResolution: 240/10000
Why is it dividing by 10000? According to Photoshop, the actual resolution is 240. By doing this, I get an actual Print Size of
Print size: 112625x173625
which seems ridiculous.

Any ways to prevent this would be greatly appreciated.

Re: Resolution being divided by 10000

Posted: 2010-10-08T07:18:26-07:00
by DaleyKD
Polite bump? :D

Re: Resolution being divided by 10000

Posted: 2010-10-08T16:06:14-07:00
by fmw42
post a link to an example image where this is going on for others to examine.

Re: Resolution being divided by 10000

Posted: 2010-10-11T07:47:23-07:00
by DaleyKD
fmw42 wrote:post a link to an example image where this is going on for others to examine.
I did as the very first line in my first post, but here it is again:
http://upload.meisel.com/WebAccess/Uplo ... tFile/3613

Re: Resolution being divided by 10000

Posted: 2010-10-11T10:05:42-07:00
by fmw42
DaleyKD wrote:
fmw42 wrote:post a link to an example image where this is going on for others to examine.
I did as the very first line in my first post, but here it is again:
http://upload.meisel.com/WebAccess/Uplo ... tFile/3613

Sorry I overlooked the original link.

IM reports:


identify -verbose 8883527.jpg
Image: 8883527.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 2703x4167+0+0
Resolution: 0.024x0.024
Print size: 112625x173625
Units: PixelsPerInch
...
exif:XResolution: 240/10000
exif:YResolution: 240/10000


So I would say someone set the density (resolution) of this image to some strange value. 240/10000 = 0.024 so they are consistent.

You can change the density to whatever you want using -density.

convert 8883527.jpg -density 72 -units pixelsperinch 8883527_d72.jpg


identify -verbose 8883527_d72.jpg
Image: 8883527_d72.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 2703x4167+0+0
Resolution: 72x72
Print size: 37.5417x57.875
Units: PixelsPerInch

Re: Resolution being divided by 10000

Posted: 2010-10-11T10:21:16-07:00
by DaleyKD
Yah, that's what makes this so difficult. If you open it in Photoshop, it's 240 ppi, which I believe is correct. The real print size of this, I believe, should be approximately 11.2625" x 17.3625". In our company, I can't change the ppi from what a customer sends us, since we have to print to their size.

I guess I'm going to have to write this off as a fluke. I've had a few (maybe 4 max) images come in where the ppi is shown as a fraction of what it should be, forcing the print size to be ridiculous. I just wish I could make an assumption so that it'd be correct.

If you have other ideas, that'd be great. Otherwise, thanks for the insight.

Re: Resolution being divided by 10000

Posted: 2010-10-11T10:31:09-07:00
by fmw42
I opened it in PS and got 240. But if you look at the information from exiftool, there are two different resolutions.


exiftool -s -ee -g1 -u -n -D 8883527.jpg


---- Photoshop ----
1061 IPTCDigest : e8f15cf32fc118a1a27b67adc564d5ba
1071 Photoshop_0x042f : h?.HH?.@...d..?.?...'.4846.CR
0 XResolution : 240
2 DisplayedUnitsX : 1
4 YResolution : 240
6 DisplayedUnitsY : 1


...



---- IFD0 ----
271 Make : Canon
272 Model : Canon EOS 5D
274 Orientation : 1
282 XResolution : 0.024
283 YResolution : 0.024
296 ResolutionUnit : 2




...



---- XMP-tiff ----
- Make : Canon
- Model : Canon EOS 5D
- Orientation : 1
- XResolution : 240
- YResolution : 240
- ResolutionUnit : 2


I don't understand Photoshop or JPG format or the camera involved. But it looks like the camera set it to 0.24, but Photoshop processed it to 240.

Some one who know more about these things than I needs to look at this. IM can only use one resolution and you have two to choose from.