gm icon indicating copy to clipboard operation
gm copied to clipboard

autoOrient strips profiles

Open FranBran opened this issue 10 years ago • 3 comments

When using autoOrient all profile-data is being stripped.

gm(path).autoOrient().options({ imageMagick : true }).write(path, function(err) {});

Is this a bug, or how can one prevent profiles (e.g. exif-data) from being lost?

FranBran avatar Nov 10 '14 12:11 FranBran

From the GraphicsMagick Documentation: "GraphicsMagick does not include an EXIF editor"

Since GraphicsMagick doesn't support this you'll have to find another way to write EXIF data.

richardkazuomiller avatar Nov 12 '14 21:11 richardkazuomiller

And what about when using gm with imagemagick ? I can see that it's also running with -strip argument.

boertel avatar Dec 02 '14 23:12 boertel

There is PR #482, but is not yet closed.

In the mean time I'm doing this work around const imageMagick = gm.subClass({imageMagick: true}) imageMagick(file_path) // .autoOrient() // waiting for this PM to be resolved https://github.com/aheckmann/gm/pull/482 .in('-auto-orient') .write(file_path, function(err) {});

hdjvieira avatar Aug 01 '22 13:08 hdjvieira