viliusle / miniPaint

online image editor
http://viliusle.github.io/miniPaint/
Other
2.6k stars 606 forks source link

Half of exported image is gray if source-atop is used #304

Closed David-Development closed 2 years ago

David-Development commented 2 years ago

Over the past month I've followed the discussion around the broken source-atop behavior closely however from what I understand it is fixed in the latest "master". Therefore I tested it locally and it works great in the editor. However, exporting images breaks them (left is the editor, right is the exported image). Note that you can see the "mask" rectangle on the bottom half of the screen.

Example Template that reproduces the issue: sample.json.zip

Thanks for all the great work on this tremendously useful tool!

Giwayume commented 2 years ago

This is just a simple width/height mixup. Your monitor height probably doesn't surpass the width of this image (1440px) in the lower resolution viewport preview so the bug only shows up when the full size image is exported.

viliusle commented 2 years ago

Fixed on master branch.