Imagesharp: Remove EXIF from image

Created on 13 Dec 2017  路  1Comment  路  Source: SixLabors/ImageSharp

Dear team, can you please describe how can I remove EXIF information from image or rotate it based on EXIF data?

question

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 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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings