Drawpile icon indicating copy to clipboard operation
Drawpile copied to clipboard

Extanding canvas of png adds a transparent area between the two parts of the document

Open tobiasBora opened this issue 3 years ago • 1 comments

If I create a new project, draw something simple and save it as png like this:

test

If I open it again from drawpile and extand it (Ctrl-k), drawpile adds an ugly transparent barrier in between the two parts:

image

I can typically solve the problem by going into Edit > Define background > white, but it's not extremely practical. I'm also not sure to understand why the transparent line is only in a thin line.

tobiasBora avatar Jun 09 '22 08:06 tobiasBora

When you resize the canvas, Drawpile tries to guess if you have a canvas-filling layer that acts as a background and then tries to use that color as the background for the newly added area, but doesn't quite manage to do so if your image size wasn't a multiple of 64 for internal reasons. It was a feature that existed before canvas backgrounds were a thing and doesn't really have a point anymore other than to be confusing.

That (mis)feature has been removed from Drawpile 2.2, instead the entire area will be transparent. That resolves this issue.

The reason for that is because your PNG doesn't have a distinction between background and foreground, it's been merged together. ORA is the only format that will keep them separate, which is probably what you want to save as if you want to edit your picture again later.

askmeaboutlo0m avatar Aug 06 '22 14:08 askmeaboutlo0m

(I've taken over development on Drawpile, so I'm going through these tickets and organizing them.)

Effectively fixed and coming in Drawpile 2.2.

askmeaboutlo0m avatar Mar 24 '23 12:03 askmeaboutlo0m