Describe the bug
When creating a new document and drag-n-dropping a 768x768 pixels image causes Graphite to import the image as a 1800000x1800000 pixels layer.
To Reproduce
- Create new document 1920x1080
- Import a layer
Expected behavior
The newly created layer has the same dimensions as the imported image.
Priority
P0, the issue makes working with Graphite impossible.
Reference - Google Issue tracker priority levels
Screenshots/Video

The proper image can be seen in right bottom corner.
Desktop
- OS: Ubuntu 22.04
- Browser: Firefox
- Resolution: 1920x1080
- Version: Latest master branch 2023/03/28 14:42 CET
Additional context
The problem has started occurring sometime after #1087
Describe the bug
When creating a new document and drag-n-dropping a 768x768 pixels image causes Graphite to import the image as a 1800000x1800000 pixels layer.
To Reproduce
Expected behavior
The newly created layer has the same dimensions as the imported image.
Priority
P0, the issue makes working with Graphite impossible.
Reference - Google Issue tracker priority levels
Screenshots/Video
The proper image can be seen in right bottom corner.
Desktop
Additional context
The problem has started occurring sometime after #1087