date: 2026-11-27 python: Python 3.12.3 pillow: 10.1.0 numpy: 1.26.4 == CONTROL 1: 300x300 clear picture with a solid 100x100 square (known: corners 0, solid 11.1%, soft 0) size: 300 x 300 corner alpha (top-left, top-right, bottom-left, bottom-right): 0 0 0 0 transparent (alpha 0): 88.9% solid (alpha 255): 11.1% soft (alpha 1-254): 0.0% = 0 pixels box 100,100,100,100: 100.0% of its pixels have alpha 128 or more, 100.0% have any opacity saved ctl1-on-black.png and ctl1-on-white.png: open both at 100% zoom and look at the outline == CONTROL 2: 100x100 white picture at alpha 128 (known: soft 100.0%) size: 100 x 100 corner alpha (top-left, top-right, bottom-left, bottom-right): 128 128 128 128 transparent (alpha 0): 0.0% solid (alpha 255): 0.0% soft (alpha 1-254): 100.0% = 10000 pixels saved ctl2-on-black.png and ctl2-on-white.png: open both at 100% zoom and look at the outline == CONTROL 3: a JPG has no transparency (known: refuses, exit 2) error: no transparency in box.jpg (a JPG has none: use the PNG the tool gives you) exit=2 == CONTROL 4: the untouched phone photo is not pure white at the border (known: lowest border value below 255) corner pixels (top-left, top-right, bottom-left, bottom-right): (197, 177, 178) (247, 238, 239) (233, 221, 221) (249, 245, 244) border pixels exactly 255,255,255: 0 of 6720 (0.0%); lowest channel value on the border: 156 == CONTROL 5: the square control placed on white: border must be 255 (known: 100.0%) saved ctl5.png at 400 x 400, product 320 x 320 px, shadow none corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 1600 of 1600 (100.0%); lowest channel value on the border: 255 == Tool runs: cutout checks -- box size: 1920 x 1440 corner alpha (top-left, top-right, bottom-left, bottom-right): 0 0 0 0 transparent (alpha 0): 54.7% solid (alpha 255): 31.5% soft (alpha 1-254): 13.7% = 379073 pixels saved chk-box-on-black.png and chk-box-on-white.png: open both at 100% zoom and look at the outline -- bottle size: 1920 x 2880 corner alpha (top-left, top-right, bottom-left, bottom-right): 0 0 0 0 transparent (alpha 0): 53.6% solid (alpha 255): 37.2% soft (alpha 1-254): 9.2% = 507092 pixels saved chk-bottle-on-black.png and chk-bottle-on-white.png: open both at 100% zoom and look at the outline -- scissors size: 1920 x 1440 corner alpha (top-left, top-right, bottom-left, bottom-right): 0 0 0 0 transparent (alpha 0): 79.5% solid (alpha 255): 6.2% soft (alpha 1-254): 14.4% = 397098 pixels saved chk-scissors-on-black.png and chk-scissors-on-white.png: open both at 100% zoom and look at the outline == Scissors: upper blade, box 1300,495,300,30 (drawn by hand inside the blade, original pixels) first run: box 1300,495,300,30: 0.0% of its pixels have alpha 128 or more, 100.0% have any opacity saved scissors-lift.jpg (gamma 0.45) cutout of the lifted copy: box 1300,495,300,30: 71.3% of its pixels have alpha 128 or more, 100.0% have any opacity == Control for the lift: boxes over plain background must stay empty in both cutouts (wall 50,50,300,100; wood table 100,170,300,100) scissors-cut.png: box 50,50,300,100: 0.0% of its pixels have alpha 128 or more, 0.0% have any opacity box 100,170,300,100: 0.0% of its pixels have alpha 128 or more, 0.0% have any opacity scissors-lift-cut.png: box 50,50,300,100: 0.0% of its pixels have alpha 128 or more, 0.0% have any opacity box 100,170,300,100: 0.0% of its pixels have alpha 128 or more, 0.0% have any opacity saved scissors-fixed.png (original pixels, mask from scissors-lift-cut.png) == Whole picture, first cutout against the fixed one (alpha shares; the box and the two controls are small parts of it) alpha 255: first 6.16%, fixed 2.49% alpha 128 or more: first 11.01%, fixed 13.30% alpha 128 or more in the fixed file but not in the first: 2.55% of the picture mask of the lifted copy on the original pixels: soft (alpha 1-254): 24.4% = 675974 pixels box 1300,495,300,30: 71.3% of its pixels have alpha 128 or more, 100.0% have any opacity == The tool's own JPG on white (border check) -- box tool JPG corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 6720 of 6720 (100.0%); lowest channel value on the border: 255 -- bottle tool JPG corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 9585 of 9600 (99.8%); lowest channel value on the border: 253 -- scissors tool JPG corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 6720 of 6720 (100.0%); lowest channel value on the border: 255 == Listing images at 1000 x 1000, no shadow, PNG and JPG saved L-box-none.png at 1000 x 1000, product 840 x 681 px, shadow none corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 4000 of 4000 (100.0%); lowest channel value on the border: 255 saved L-box-none.jpg at 1000 x 1000, product 840 x 681 px, shadow none corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 4000 of 4000 (100.0%); lowest channel value on the border: 255 143421 L-box-none.jpg 566533 L-box-none.png saved L-bottle-none.png at 1000 x 1000, product 407 x 840 px, shadow none corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 4000 of 4000 (100.0%); lowest channel value on the border: 255 saved L-bottle-none.jpg at 1000 x 1000, product 407 x 840 px, shadow none corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 4000 of 4000 (100.0%); lowest channel value on the border: 255 112526 L-bottle-none.jpg 406940 L-bottle-none.png saved L-scissors-none.png at 1000 x 1000, product 840 x 344 px, shadow none corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 4000 of 4000 (100.0%); lowest channel value on the border: 255 == Listing at 2048 saved L-bottle-2048.jpg at 2048 x 2048, product 835 x 1720 px, shadow none corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 8192 of 8192 (100.0%); lowest channel value on the border: 255 == Shadow variants (draft settings, our taste) saved L-bottle-floor.png at 1000 x 1000, product 378 x 780 px, shadow floor corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 4000 of 4000 (100.0%); lowest channel value on the border: 255 saved L-box-drop.png at 1000 x 1000, product 840 x 681 px, shadow drop corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 4000 of 4000 (100.0%); lowest channel value on the border: 255 saved L-scissors-drop.png at 1000 x 1000, product 840 x 344 px, shadow drop corner pixels (top-left, top-right, bottom-left, bottom-right): (255, 255, 255) (255, 255, 255) (255, 255, 255) (255, 255, 255) border pixels exactly 255,255,255: 4000 of 4000 (100.0%); lowest channel value on the border: 255 == Shadow pixels: share of canvas whose grey value (PIL convert L) is below 250; box = box-cut.png, scissors = the lift-fixed scissors-fixed.png (drop shadow keeps the product size, so the same product is compared) L-box-none.png 32.2% darker than 250 | L-box-drop.png 35.8% | darkest shadow-only pixel 176 L-scissors-none.png 10.1% darker than 250 | L-scissors-drop.png 14.9% | darkest shadow-only pixel 174