0

I have a blob created from an HEIF image which probably contains EXIF Orientation value. I'm using heif2any.js to convert it to JPEG image but I want to prevent double-rotation problem stated in this answer: https://stackoverflow.com/a/28596303/9249141 (the library suggested to be used does not support HEIF format).

So I simply need a JS function which takes a blob created from an HEIF image, remove its EXIF Orientation tag OR set EXIF Orientation value to 1, and then return the result as a new blob.

Ramtin Didab
  • 21
  • 1
  • 3

1 Answers1

0

You don't need to worry about it since heic2any discards metadata in the conversion. That's one of the downsides of the utility, but an upside for you!

Tom Davenport
  • 341
  • 4
  • 7
  • Well I ended up converting to PNG first. If converted to JPG, the metadata is messed up and it may result in wrong orientation. But the problem is solved if you first convert to PNG. – Ramtin Didab Jul 28 '22 at 00:06