Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Wrong application markers order after changing one of them

$
0
0
Hello

I have the image with several profiles(exif, iptc, and so on).
I change several profiles: add or remove some values and save them with the new image.
using (MagickImage image = new MagickImage(SampleFiles.FujiFilmFinePixS1ProJpg))
{
    ExifProfile exifProfile = image.GetExifProfile();
    IptcProfile iptcProfile = image.GetIptcProfile();

    exifProfile.SetValue(ExifTag.ExposureTime, 0.125);
    iptcProfile.SetValue(IptcTag.CopyrightNotice, "TEST");

    image.AddProfile(iptcProfile);
    image.AddProfile(exifProfile);

    image.Write(SampleFiles.OutputDirectory + "FujiFilmFinePixS1Pro.updatedExifAndIptc.jpg");
}
After that I open the generated image using hex editor and I see that order of application markers in header section has changed.
For example section for exif data(application marker APP0: FF E1) moved to another place in a file. See images below:
Image
Image

There is any way to save original order(from FF E0 down to FF EF) for all application markers?

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>