Read/Rewrite Metadata for Photoshop

I am trying to develop or find a program to read a piece of metadata from a Keyence microscope image and then have it rewritten in a format that can be read from Photoshop Javascript. Bioformats from ImageJ, my previous go to for this kind of problem, was unable to read it.

Given the images are made from Keyence windows application, and the browsing software has the view > show properties toggle, I suspect the metadata format is GDI+.

https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-reading-and-writing-metadata-use#reading-metadata-from-a-file

I don't know where to go to from here. I am guess it making a C++ program for the read/rewrite, but I don't know if it's possible to use C++ to write metadata in another format (such as standard TIFF).
Take a closer look at the section "Writing Metadata to a File". It should provide everything you need. Following the link

https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-retrieving-the-class-identifier-for-an-encoder-use

shows what image types are supported.

I suspect the metadata format is GDI+
No, GDI+ is a C++ framework that provides functionality such as for reading/writing of images.
maybe you need to read this?
https://docs.oracle.com/javase/9/docs/api/javax/imageio/metadata/doc-files/tiff_metadata.html
or this:
https://www.loc.gov/preservation/digital/formats/fdd/fdd000022.shtml

each image format supports different metadata; jpeg has a small place to dump a paragraph or so of text, while some formats don't have much more than the dimensions of the image and color format.

windows preview can show the data for a lot of formats. So can image display /edit type programs. But the data itself is IN the image file, in a specific format for each file. You can extract it, modify it, etc. Be careful -- changing the dimensions or the like without also updating the image data may break some image files. The text comment areas are free for all, though.

Last edited on
There is also the Windows Imaging Component that can deal with reading and writing image data and meta-data:
https://docs.microsoft.com/en-us/windows/win32/wic/-wic-programming-guide
Topic archived. No new replies allowed.