Apps submit mutli-plane images with glyphs, rather than mere images

This commit is contained in:
James Babcock committed 2026-08-16 21:01:20 -07:00
1 parent df85fb4072
commit fdf683761e
22 files changed
+348 -101

No files matched your search

+4 -3
View File
@@ -17,10 +17,11 @@ export function grayImageToPreviewSource(image: GrayImage): ImageSource | null {
return null;
}
const baked = image.withGlyphsBaked();
const bitmap = com.faceclaw.app.PreviewBitmapUtil.fromGray(
image.pixels.buffer,
image.width,
image.height,
baked.pixels.buffer,
baked.width,
baked.height,
PREVIEW_BRIGHTEN_GAMMA,
);
return new ImageSource(bitmap);