Files
vectorcraft/crates/engine
dotCooCoo 6efb0dda4b Images: a selected image's color mode is read from its file header
With one image selected, the Control bar and the Properties panel ask
image.info for its details again after every change to the document,
each step of a drag included. image.info decoded the whole image to
find its color mode, so dragging or redrawing a large placed image
(about 8000 x 4000 px) spent hundreds of milliseconds per step on the
UI thread. A group holding the image did not lag.

image.info and file.place.info now read the color mode from the
header of a PNG, JPEG, TIFF, PSD, GIF or BMP file, and report RGB for
WebP, without decoding the pixels. Other formats are still decoded.

(cherry picked from commit 194de01a52)
2026-12-01 09:42:23 +01:00
..