Another issue with X-Y Resolution

Started by Archive, May 12, 2010, 08:53:51 AM

Previous topic - Next topic

Archive

[Originally posted by bubba on 2005-10-04 09:38:51-07]

Hi,

I have an image that I used for testing my service (called sample.jpg as part of the default install of Win2K) that does not provide me with an X or Y resoloution even though both exiftool via the cli and IrfanView report 100 x 100.

Does you have any suggestions.

--
Bubba

Archive

[Originally posted by exiftool on 2005-10-04 11:47:30-07]

Sorry, I don't have easy access to a Windoze machine so I can't take a look at that image.  When you say "does not provide me with an X or Y resoloution", what exactly do you mean?  Does the sample script I mailed you extract the X/YResolution from this image?

Archive

[Originally posted by bubba on 2005-10-04 13:08:51-07]

Sorry, what I mean is that instead of getting returned 100 as I would expect I get nothing (null?) not even a zero. It only appears to be on this image as well, all of the others I've tested to date are ok. So I'll email it to you.

It would appear that the values from the EXIF versions of the XY are overriding the found values from the JFIF APP0 header and I'm assuming in this instance that the EXIF entries are empty and thus overriding the 100.

--
Bubba

Archive

[Originally posted by exiftool on 2005-10-04 15:30:11-07]

Thanks for the sample.  Yes, I understand that you aren't getting the X/YResolution, but I don't understand what you are doing.  For example, I get this output:

Code:
XResolution = 100
YResolution = 100

from this script:

Code:
#!/usr/bin/perl -w

BEGIN { unshift @INC, 'lib'; }

use Image::ExifTool 'ImageInfo';

my $file = shift or die "must specify image file name\n";

my $exifTool = new Image::ExifTool ;
my @ioTagList = qw(XResolution YResolution) ;
my $info = $exifTool->ImageInfo($file, \@ioTagList) ;

my $tag;
foreach $tag (@ioTagList) {
    if ($$info{$tag}) {
        print "$tag = $$info{$tag}\n";
    } else {
        print "$tag doesn't exist\n";
    }
}

#end

When I run it on the sample image you sent.

Archive

[Originally posted by bubba on 2005-10-04 16:15:24-07]

Yes, I too get the same output but when used within my web page I get nothing so I'm as confused as you are. If you want I can email you the URL to the development site and you can see for yourself what I mean by submitting some test images.

Let me know if this suits.

--
Bubba.

Archive

[Originally posted by exiftool on 2005-10-04 17:36:44-07]

Having a URL won't help me much because it won't allow me to see the CGI script, but if you could email me the script it could be more useful.