Unable to read picture information correctly

Started by ytzhiyuan, February 20, 2023, 08:10:08 PM

Previous topic - Next topic

ytzhiyuan

The picture is made with AI.Now,there is no Color Mode态Resolution,when I use exiftool.Please help me,Thanks.


StarGeek

What picture?  Do you have a sample we can look at?
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

ytzhiyuan

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

ytzhiyuan

1.jpg correct resolution is 400,but exiftool output 200.
99.jpg correct resolution is 72,exiftool can't output the resolution

StarGeek

For the first one, this is FAQ #3.  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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

ytzhiyuan

The first can sloved.
I plan use 72 dpi with second picture.
Thanks again.

Alan Clifford

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.

ytzhiyuan

Not that,I'm using resolution to compute width and height of the picture.