How to add image information such as x and y resolution?
8 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Image Analyst
on 16 Jun 2022
Edited: Image Analyst
on 16 Jun 2022
See this:
run_exiftool
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
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.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!