get dpi and unit

Started by ytzhiyuan, March 26, 2023, 10:56:18 PM

Previous topic - Next topic

ytzhiyuan

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

ytzhiyuan

when I get dpi&unit of the picture ,sometimes return 2 or 3 xresolution

Phil Harvey

I would take the one that ExifTool shows without the -a option (ie. IFD0)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

#3
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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).