blueimp/JavaScript-Load-Image

Change only orientation keeping other head as is

hnviradiya opened this issue · 4 comments

Is it possible to maintain metadata by only changing orientation?

I have created following jsbin where when I replace head, it is losing orientation. Is there a way to fix this?

https://jsbin.com/cemeqeniru/2

I have created question on stack overflow.

https://stackoverflow.com/questions/64154314/change-only-image-orientation-keeping-other-head-as-is

Yes you can, with the exif writer functionality:
https://github.com/blueimp/JavaScript-Load-Image#exif-writer

Oh. Why did i think that other functions were of no use to my current requirement. I spent lot of time to figure out. Sorry to create this issue. And thanks a lot for your prompt response.

seems still something wrong. image orientation is not changing. I am using following image.
DSCN0010

I have updated link with exif-writer
https://jsbin.com/niretatebi/1/edit?html,output

Got that fixed. orientation: 1 was still required: { meta: true, orientation: 1, canvas: true }

https://jsbin.com/votobatiqo/edit?html,output