Embed raster images in the SVG preview
The SVG preview painted every DisplayItem::Image as a grey rectangle. Encode the raw RGB image as a PNG (zlib via flate2, CRC32, base64) and emit an SVG <image> data URI; keep the grey fallback for images above four megapixels. The article preview now contains the real 480x240 plot and the framed rule figure is visible while editing. Test count stays 1074.
This commit is contained in:
1 parent
fc328a56c6
commit
2ef5e29329
4 files changed
+107
-11
No files matched your search
@@ -49,9 +49,10 @@ execution is not a goal.
|
||||
numeric, and the full natbib option surface is not implemented;
|
||||
- display math is approximate;
|
||||
- PNG/JPEG/BMP floats now reserve their image height, embed the raster with
|
||||
its real pixel dimensions, and centre the image within the float; table
|
||||
floats are centred with their booktabs rules. The fbox frame and vector/PDF
|
||||
images are still missing, and float order/placement differs.
|
||||
its real pixel dimensions, centre the image within the float, and emit it
|
||||
into the SVG preview as a PNG data URI. Table floats are centred with their
|
||||
booktabs rules. Vector/PDF images are still missing, and float
|
||||
order/placement differs.
|
||||
- Incremental foundation exists:
|
||||
- `Engine::edit` + page hashes;
|
||||
- project-scoped sessions and changed-page reporting;
|
||||
|
||||
Reference in new issue
Block a user