hunkim98 / dotting

Dotting is a pixel art editor component library for react
https://hunkim98.github.io/dotting/
MIT License
43 stars 12 forks source link

Feature request: improve resizer #100

Closed KR155E closed 8 months ago

KR155E commented 9 months ago

The pixel art editor I am trying to build using dotting has some specific requirements, which can not currently be solved by the resizer. Since the target is a tile-base retro console, the image width and height need to be multiples of 8. I have two ideas to improve the current resizer, both of which would solve my problem.

  1. Add parameters to the current resizer, which would control the size of steps in which it allows resizing the image ("step", default 1), plus ideally min and max parameters that limit resizing.
  2. Allow setting image dimensions programmatically