mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Object Finder's click sampled the layer composited over 50 % grey, so a fully transparent pixel read as mid grey. A mid-grey object then sat within the growth's colour distance of the empty area, the region reached the canvas edge, and object_in rejected it as background. Red and blue are far from 0.5 grey, which is why only they were found. Sampler gains rgba_scaled, which keeps alpha at working resolution. object_in reads through it once, never grows into a non-opaque working pixel, and gives transparency hard background in the trimap; a click on a transparent pixel finds nothing. rgb_scaled is untouched, so Quick Selection, Select Subject, sky, focus and the rectangle mode keep their results. Tests: the issue's 800x600 document and the Grayscale one in a new test file; both fail without the fix.