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.
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?
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:


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