Steve-Mcl / node-red-contrib-image-tools

A Node-RED contrib node that provides image processing capabilities
MIT License
36 stars 17 forks source link

Output as Buffer does an rotation #37

Open excedra opened 2 years ago

excedra commented 2 years ago

When outputting an image as buffer, it will be rotated by 90 degrees. Is this intended?

Is this related to this? https://stackoverflow.com/questions/48716266/sharp-image-library-rotates-image-when-resizing

Steve-Mcl commented 2 years ago

When outputting an image as buffer, it will be rotated by 90 degrees. Is this intended?

I suspect your image has rotation info in the EXIF data. I seem to remember seeing some issues with that and the underlying JIMP library. If you can provide sample image and demo flow I will attempt to understand and help you get this sorted.

Is this related to this? https://stackoverflow.com/questions/48716266/sharp-image-library-rotates-image-when-resizing

No, this node uses the JJIMP library not sharp-image

StasTikh commented 2 years ago

is there any updates? because i've got same issue - when passing image url to image node, getting it back rotated -90 deg. what should it be?