ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: ytzhiyuan on February 20, 2023, 08:10:08 PM

Title: Unable to read picture information correctly
Post by: ytzhiyuan on February 20, 2023, 08:10:08 PM
The picture is made with AI.Now,there is no Color Mode态Resolution,when I use exiftool.Please help me,Thanks.
Title: Re: Unable to read picture information correctly
Post by: ytzhiyuan on February 20, 2023, 08:10:46 PM
AI is IIIIustrator
Title: Re: Unable to read picture information correctly
Post by: StarGeek on February 20, 2023, 08:37:12 PM
What picture?  Do you have a sample we can look at?
Title: Re: Unable to read picture information correctly
Post by: ytzhiyuan on February 20, 2023, 08:41:57 PM
Quote from: StarGeek on February 20, 2023, 08:37:12 PMWhat picture?  Do you have a sample we can look at?
https://newpy-upload-home.oss-cn-shanghai.aliyuncs.com/%E5%BC%80%E5%8F%91%E6%B5%8B%E8%AF%95/99.jpg
https://newpy-upload-home.oss-cn-shanghai.aliyuncs.com/%E5%BC%80%E5%8F%91%E6%B5%8B%E8%AF%95/1.jpg

Thanks
Title: Re: Unable to read picture information correctly
Post by: ytzhiyuan on February 20, 2023, 08:45:48 PM
1.jpg correct resolution is 400,but exiftool output 200.
99.jpg correct resolution is 72,exiftool can't output the resolution
Title: Re: Unable to read picture information correctly
Post by: StarGeek on February 20, 2023, 09:07:44 PM
For the first one, this is FAQ #3 (https://exiftool.org/faq.html#Q3).  Using that command to see all tags will show there's resolution tags in two different groups.
C:\>exiftool -G1 -a -s -*resolution* Y:\!temp\dd\1.jpg
[XMP-tiff]      XResolution                     : 72
[XMP-tiff]      YResolution                     : 72
[XMP-tiff]      ResolutionUnit                  : inches
[Photoshop]     XResolution                     : 400
[Photoshop]     YResolution                     : 400

The second file simply doesn't have any embedded metadata at all except for the Adobe block
C:\>exiftool -G1 -a -s -e Y:\!temp\dd\99.jpg
[ExifTool]      ExifToolVersion                 : 12.56
[System]        FileName                        : 99.jpg
[System]        Directory                       : Y:/!temp/dd
[System]        FileSize                        : 1338 kB
[System]        ZoneIdentifier                  : Exists
[System]        FileModifyDate                  : 2023:02:20 18:01:08-08:00
[System]        FileAccessDate                  : 2023:02:20 18:04:58-08:00
[System]        FileCreateDate                  : 2023:02:20 18:01:08-08:00
[System]        FilePermissions                 : -rw-rw-rw-
[File]          FileType                        : JPEG
[File]          FileTypeExtension               : jpg
[File]          MIMEType                        : image/jpeg
[File]          ImageWidth                      : 1300
[File]          ImageHeight                     : 915
[File]          EncodingProcess                 : Progressive DCT, Huffman coding
[File]          BitsPerSample                   : 8
[File]          ColorComponents                 : 3
[File]          YCbCrSubSampling                : YCbCr4:2:0 (2 2)
[Adobe]         DCTEncodeVersion                : 100
[Adobe]         APP14Flags0                     : Encoded with Blend=1 downsampling
[Adobe]         APP14Flags1                     : (none)
[Adobe]         ColorTransform                  : YCbCr

Any resolution whatever other program you're using to view the second image is simply listing a default resolution.  72 is a common default among Adobe programs, I believe.
Title: Re: Unable to read picture information correctly
Post by: ytzhiyuan on February 20, 2023, 09:22:17 PM
The first can sloved.
I plan use 72 dpi with second picture.
Thanks again.
Title: Re: Unable to read picture information correctly
Post by: Alan Clifford on February 21, 2023, 03:25:30 PM
Surely dots per inch has not relevance to a digital photo.  Just change it to whatever you want.  The value is just a bit of text.
Title: Re: Unable to read picture information correctly
Post by: ytzhiyuan on February 21, 2023, 07:28:52 PM
Not that,I'm using resolution to compute width and height of the picture.