Files
vectorcraft/crates
dotCooCoo 313d889a7f PSD import: a group that draws nothing is drawn once, however deep it nests
A group with a knockout was drawn for the knockout and, when it drew
nothing, drawn again as a layer of its own. Nested inside each other,
such groups were drawn twice over for every level, so opening a crafted
PSD file could take exponential time; layers without pixels charge
nothing against the import's memory allowance, so it did not stop it.

The import now keeps what a group gave when drawn without reading any
layer's pixels (nothing, or a canvas without pixels) and gives it again
without walking the group's layers. A pass-through group that laid
nothing onto an empty canvas without reading any pixels is not laid
there again; its layers count the same warnings each time. A merge
that can't be made forgets the groups found during it, with the notes
it gives back.

A knockout group that comes in as a layer is also listed after being
drawn, and its layers clipped to a fill that isn't drawn, or left
unclipped by a merge past the memory allowed, were counted twice in the
warnings. Each is now counted once.

The knockout of a layer that others are clipped to was applied when
the clip merge needed more memory than allowed and the layers came in
apart. It is now left unapplied and counted, as it is when the clip
merge is made.

A Dissolve knockout at part opacity cleared every pixel below it in
part. It now clears each pixel fully or not at all, at the share its
transparency times its opacity gives, as other Dissolve merges do.
2026-11-17 16:54:12 -08:00
..
…