Bug 353499 - trim image to layer size doesn't update the image size correctly
Summary: trim image to layer size doesn't update the image size correctly
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 2.9.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-03 19:37 UTC by fabrice salvaire
Modified: 2016-03-31 12:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
file r this bug (1.50 MB, application/x-krita)
2015-10-09 12:12 UTC, fabrice salvaire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fabrice salvaire 2015-10-03 19:37:58 UTC
The rendering of the freehand tool is no longer real time in a layer, krita uses 100 % of the cpu and can take more than one minute to render the path. Krita can also hang.

Reproducible: Sometimes

Steps to Reproduce:
This bug happen after some drawing times. It is related to a layer and is absolutely reproducible since this behaviour survives to a reopening of the file.
Comment 1 fabrice salvaire 2015-10-03 20:15:39 UTC
- Krita reports an image of 1600x900 px 3G instead of 11 M
- it survives to a copy from the layer to a new one
- but it don't survives if the layer is pasted in another file
Comment 2 Halla Rempt 2015-10-09 11:42:01 UTC
Hi Fabrice,

Could you make that file available for me to check? I suspect that that there's a layer on it that's much bigger than the image.
Comment 3 fabrice salvaire 2015-10-09 12:12:43 UTC
Created attachment 94908 [details]
file r this bug
Comment 4 fabrice salvaire 2015-10-09 12:14:35 UTC
(In reply to fabrice salvaire from comment #3)
> Created attachment 94908 [details]
> file r this bug

file to reproduce the bug
Comment 5 Halla Rempt 2015-10-09 13:54:20 UTC
Yes, my hunch was correct. I'm not sure how you managed, but that layer is 47498x86431 pixels. Use "Trim to Image Size" to cut off the extraneous parts. It shows another bug, though, trim to layer size doesn't correctly update the image size: the size in the statusbar remains the old size.
Comment 6 fabrice salvaire 2015-10-09 14:04:42 UTC
I ran into this bug for two projects and I did nothing particular with the layers: just added layers, and used the move tool. Thus something is wrong somewhere.
Comment 7 Halla Rempt 2015-10-10 11:26:16 UTC
Krita doesn't remove pixels from a layer if you move it around, which in the end is the reason why you can end up with layers that are bigger than the image.
Comment 8 Halla Rempt 2016-03-31 12:06:28 UTC
I checked with other applications, and they also don't remove parts of layers that are beyond the image boundaries on saving/loading, so trim to image size is the solution for this issue.