ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: ytzhiyuan on March 26, 2023, 10:56:18 PM

Title: get dpi and unit
Post by: ytzhiyuan on March 26, 2023, 10:56:18 PM
When I use the following command, the result is as follows, which xresolution and resolutionunit should I take?
exiftool -a -G1 -s -XResolution -ResolutionUnit 550X120软中远cxT.jpg Picture url:https://newpy-upload-home.oss-cn-shanghai.aliyuncs.com/51694e81cbfb4388b1c398d9497f3589/鸭/550X120软中远cxT.jpg
Title: Re: get dpi and unit
Post by: ytzhiyuan on March 26, 2023, 10:58:59 PM
when I get dpi&unit of the picture ,sometimes return 2 or 3 xresolution
Title: Re: get dpi and unit
Post by: Phil Harvey on March 27, 2023, 08:05:27 AM
I would take the one that ExifTool shows without the -a option (ie. IFD0)

- Phil
Title: Re: get dpi and unit
Post by: StarGeek on March 27, 2023, 11:28:22 AM
I'd say it depends upon which one is used by the programs in your workflow.  Photoshop, for example, might prioritize to the ones in the photoshop block.