lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
282 stars 27 forks source link

Allow for easier cropping of image #41

Closed miguelsolorio closed 3 years ago

miguelsolorio commented 3 years ago

A lot of design tools have a crop tool to easily resize the frame. This would be useful to have an easy way to resize, currently you have to go through bottom right and answer the quick pick width/height questions (which are a bit annoying when you're working quickly)

Figma

Photoshop

Sketch They allow the entire canvas to be resized and have width/height in a panel image

Tyriar commented 3 years ago

cmd+shift+x will crop (or via menu/command palette), new in v0.4.0 adds it to the selection and move selection tools as well:

image

Also a few days ago I was considering adding a crop tool as well and potentially having it as a good candidate to be hidden by default since there are several other ways to do it, just have it available for those that like to make a selection and crop automatically.

As for the sketch idea I could do something like that as well but I worry about too much going on in the canvas as once. When what tools are focused would you expect the corner hot spots to be visible? Move pixels/selection has similar hot spots and when you're using a pencil/rectangle it wouldn't be good either. Open to ideas 🙂