Re: Jpeg headers not saved after editing the image

Posted by Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Jpeg-headers-not-saved-after-editing-the-image-tp5006218p5006224.html

Hi Vinay (if I guessed your name correctly from the email address),

if the original data are in the EXIF data, you can use the EXIF Reader plugin from the ImageJ homepage. Then, use a macro to write metadata [setMetadata("Info", string)].

You have to save the image as .zip or .tif, then the metadata are preserved.
As Herbie said, don't save as jpeg, it is a lossy compression, maybe for display in a presentation, not for analysis. Thus, ImageJ does not care about saving metadata to JPEGs.

Much better, if your camera supports a non-lossy format like TIFF or RAW, use that format already for recording.

Michael
________________________________________________________________
On Jan 22, 2014, at 00:11, vsomasundar wrote:

> Hi,
>
> I have some jpeg images that have special headers such as the time the image
> was taken and the camera ID they belong to. Now when I do some editing on
> the image such as cropping or filtering and save the result with a new file
> name, these headers are not being saved. Is there anyway I could propagate
> these headers to the new image too?
>
> Thanks
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Jpeg-headers-not-saved-after-editing-the-image-tp5006218.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html