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

Ability to resize attached image #237

Closed
bhupesh-sf opened this issue May 3, 2021 · 6 comments · Fixed by #423
Closed

Ability to resize attached image #237

bhupesh-sf opened this issue May 3, 2021 · 6 comments · Fixed by #423
Labels
enhancement New feature or request
Milestone

Comments

@bhupesh-sf
Copy link

Right now we can give a link to the image and it appears on the page but I should be able to resize that image to match my note formatting. Images we use are generally high quality and appear very big on the page, making the whole note a little odd.

@penge
Copy link
Owner

penge commented May 3, 2021

Thank you for the suggestion.

Let's say you can drag image corner (cursor will change to resizing cursor – see Cursors), and you can then use the mouse to resize the image down, or up (up to original size).

Cursors:
image
image

Would that be fine?

@penge penge added the enhancement New feature or request label May 3, 2021
@bhupesh-sf
Copy link
Author

Yes it will work as long as I can resize all welcome 👍

@penge penge added this to the 3.11 milestone May 8, 2021
@penge penge modified the milestones: 3.11, 3.12 Jun 28, 2021
@penge penge modified the milestones: 3.12, 3.13 Aug 15, 2021
@penge penge removed this from the 3.13 milestone Oct 26, 2021
@penge
Copy link
Owner

penge commented Jun 1, 2022

This has been pushed quite a bit. We could achieve quite nice results if we add just option to modify pixel density. Not only we'll support Retina (or higher density) displays this way, but scaling picture in this precision (by half, by half, ...) could be enough.
Edit: We still need to maintain aspect ratio, so this would make it easy.
Edit 2: We now have RAW mode so any updates of this sort, are now easy and already possible.

@bhupesh-sf
Copy link
Author

Didn't understand the RAW mode, can u explain?

@penge
Copy link
Owner

penge commented Jun 2, 2022

RAW mode allows to edit notes's HTML source and add any HTML or CSS. It can be also used to have plain text notes if no HTML is added. In the Toolbar, there is a new RAW button (with a tooltip Toggle RAW), to toggle the mode.

@penge penge added this to the 3.28 milestone Dec 9, 2023
@penge
Copy link
Owner

penge commented Dec 9, 2023

@bhupesh-sf

Glad to anounce this feature will be released in the next version. Here's a preview:

my-notes-resize-image.mov

How it works:

  1. Hold Ctrl (or Cmd) and move mouse over the image (order of these actions doesn't matter), move mouse wheel up and down (or use touchpad) to resize the image.
  2. Double-click on the image to restore its original size.

Note: You may see a blue border around the images on mouse over in the video. I have later removed this border because if we would like to select an image and copy-paste it, it was causing the pasted image to have the blue border permanently. Not using the blue border have resolved it.

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

Successfully merging a pull request may close this issue.

2 participants