Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting an image resizes the canvas, even when the canvas is bigger than the image inserted #362

Open
senaiboy opened this issue Mar 4, 2023 · 2 comments

Comments

@senaiboy
Copy link

senaiboy commented Mar 4, 2023

Steps to recreate:

  • File > New
  • Change Width and Height to a large number
  • File > Open > Open File
  • Select a small image (eg a 50px by 50px icon)
  • Canvas gets resized to the width and height of the image

It happens whether the inserted image is smaller or larger than the canvas. Of course, canvas being resized upwards isn't as big an issue as having the canvas shrunk to 50px by 50px.

However, when there is already something else on the canvas, inserting a new image will not resize the canvas.

@viliusle
Copy link
Owner

viliusle commented Mar 4, 2023

Yes, I know all these rules. It was added long time ago mainly for regular users, who opens 1 image and expects it to take all space, nothing else is left.

I do not see it as a bug, but as strategy, which works well for most users, but can be annoying for small part of users.
I already received similar requests to fix it.

What I currently planning is to let user disable this auto-resize feature in user settings. Options can be:

  • Auto (always resize, by default)
  • Disabled (never auto-resize)
  • Smart (auto-resize, but if user defines canvas width and height manually - do not auto-resize) (by default ???)

p.s. this is just early ideas.
p.s.s. maybe option 3 should be default?

Please let us know what do you all think.

@senaiboy
Copy link
Author

senaiboy commented Mar 4, 2023

Honestly, I don't see the point of shrinking the canvas automatically, unless one opens the image file (to edit) and not insert an image onto a canvas. We are actually encountering this issue while using open.open_resource, which shrunk the canvas after adding an image onto the canvas (and same issue with "Search Images").

Edit: I realised when I said Open File in the original comment, I was using that to mean inserting images onto canvas. Opening the file should resize the canvas yeah, but there's no option to insert an image other than "Open File".

What about differentiating between "Open File" and "Insert Image"?

Edit 2: A popular alternative online graphics editor uses "Open" and "Open & Place" to differentiate the above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants