nhn / tui.image-editor

🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
http://ui.toast.com/tui-image-editor
MIT License
6.98k stars 1.29k forks source link

How to maintain canvas image size using crop, redo and undo function? #705

Closed ChiYoungKim-CYK closed 2 years ago

ChiYoungKim-CYK commented 2 years ago

Hello.

I wanted to maintain image size when it load. so I used imageEditor.loadImageFromFile and then called imageEditor._grahics.resize(dimensions).

However, when i used these three functions, canvas size was changed.

lja1018 commented 2 years ago

@ChiYoungKim-CYK Cropping or resizing changes the size of the image. If you need the size before the change, save it before the change.

stale[bot] commented 2 years ago

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

stale[bot] commented 2 years ago

This issue will be closed due to inactivity. Thanks for your contribution!