Open GrunyD opened 3 months ago
This is actually by design, the canvas size kwarg only affects the initial canvas size but I understand this has some limitations.
It sounds like height / width might be a better fit for your usecase? I think in this case we don't 'zoom' the image although there is an issue for zooming which i hjope to get to at some point.
Is the end goal here 'zoom to fit container' behaviour?
Describe the bug
We are working on a simple annotation tool, using your image editor. We specify canvas_size = (612, 612) and at first everything is okay. However after uploading an image, the canvas shrinks down if the image is too small. The canvas size doesn't matter anymore. We are able to kind of fix it with custom css, but it is messy and uncomfortable to have another redundant file just for this. (The right panel components are invisible at first and when picture is uploaded, they appear) I spent quite a lot of time trying to figure this out, I couldn't find a better solution.
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it