How to add image information such as x and y resolution?

8 views (last 30 days)
Hi,
I found some images from Github(with code), when I see image information of that image in MatLab(using 'imageinfo') it is showing height and width like other images which I have respectively, but in addition to that there are values for X resolution and Y resolution(like image info(dog1.png)), so I want to know how to add this resolution values into my images(image info(newImage4.png))
Thank you

Answers (1)

Image Analyst
Image Analyst on 16 Jun 2022
Edited: Image Analyst on 16 Jun 2022
See this:
run_exiftool
version 1.1.0.0 (50.5 KB) by Peter Burns
Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey.
Example of my code that uses it is attached.
  3 Comments
Image Analyst
Image Analyst on 20 Jun 2022
Why can't you run it? Did you download the File Exchange item fro Peter Burns and the tool from Phil Harvey? Probably not. What error message did you get? Something related to you not having downloaded those software packages?
You could maybe write something yourself but at this time there is no built-in options for imwrite() to allow you to write EXIF and/or IPTC metadata tags.
Abul Hasan
Abul Hasan on 21 Jun 2022
I have downloaded the file and the code is running and giving me the figure but the image is not able to save, as it's showing instal the exe file again,
I tried to save figure from figure window but, its saving with x and y axis, and I have many images to do this process..

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!