prestaconcept / PrestaImageBundle

Allow to crop local and remote image before uploading them through a classic form.
MIT License
23 stars 19 forks source link

Preview canvas after cropping modal goes outside max-width/height #77

Closed Jamezsss closed 3 years ago

Jamezsss commented 3 years ago

When I crop a image while I have set the preview width and height options. The preview image inside the cropper-canvas-container gets replaced with a canvas element which goes outside the cropper-canvas-container box where the preview width and height are set.

J-Ben87 commented 3 years ago

Any more détails?

Jamezsss commented 3 years ago

What do you need? When I cropped the image the preview in the form gets replaced by a canvas that goes outside the parent div. You need screenshots?

J-Ben87 commented 3 years ago

Screenshots, code snippets of relevant configuration & code... Anything that would provide information for me to understand where your issue comes from

Mecanik commented 3 years ago

I have the exact same problem, trying to debug and fix now.

Mecanik commented 3 years ago

Apparently if you "cancel" the current crop and try another image the previous one does not get removed and it will end up being duplicated.

J-Ben87 commented 3 years ago

That should be solved by #81