Fix image orientation in Jimp

…衆ロ難τιáo~ 提交于 2021-01-28 19:30:28

问题


I am using Jimp (https://www.npmjs.com/package/jimp) library to crop the image.

Crop is working fine but I only have an issue with image orientation.

Sometimes, user uploaded rotated images and its result rotated cropped images.

I went through with https://www.npmjs.com/package/jimp documentation but couldn't find anything related to this.

Here are couple of links I went through but didn't helped:

https://justmarkup.com/articles/2019-10-21-image-orientation/

Accessing JPEG EXIF rotation data in JavaScript on the client side

Please help

来源:https://stackoverflow.com/questions/64196003/fix-image-orientation-in-jimp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!