Dear team, can you please describe how can I remove EXIF information from image or rotate it based on EXIF data?
Hi @mgrishkov
Normally we use this issue tracker for issues (bugs) only and our Gitter chatroom for questions but I'll answer here for brevity.
If you want to auto rotate an image based on its EXIF metadata you can use the AutoOrient method
e.g.
c#
image.Mutate( x => x.AutoOrient());
To alter or remove EXIF data (if it exists) is a case of setting either the image.MetaData.ExifProfile property to null or removing the individual tag image.MetaData.ExifProfile.RemoveValue(ExifTag.Orientation)
Hope that makes sense.
Cheers,
James
Most helpful comment
Hi @mgrishkov
Normally we use this issue tracker for issues (bugs) only and our Gitter chatroom for questions but I'll answer here for brevity.
If you want to auto rotate an image based on its EXIF metadata you can use the
AutoOrientmethode.g.
c# image.Mutate( x => x.AutoOrient());To alter or remove EXIF data (if it exists) is a case of setting either the
image.MetaData.ExifProfileproperty tonullor removing the individual tagimage.MetaData.ExifProfile.RemoveValue(ExifTag.Orientation)Hope that makes sense.
Cheers,
James