π’ Help wanted: test new image compress (v2.15.0-dev.0) β big speed/size wins on image-heavy captures #438
tinchox5
announced in
Announcements
Replies: 1 comment
-
|
Here there is a live example https://codepen.io/zircle/pen/LExxxLM |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What's new
Until now, SnapDOM embedded every image at its full natural resolution β even a 3000px photo shown in a 200px box. Those invisible pixels just bloated the output and slowed down rasterization.
compressdownsamples each oversized raster to (a touch below) its visible resolution (box Γ scale Γ dpr), preserving aspect ratio and never upscaling. It covers:<img>(including cloned<canvas>/<video>)<image href>Images already shown at or below their natural size are left untouched, so typical captures pay ~nothing.
Why it matters
The benefit depends on the export:
In a heavy gallery test (1 hero + several large thumbnails, scale 2): β44% toCanvas time, β96% SVG output, mean per-pixel difference < 1/255 (imperceptible).
Try it
What I'd love you to check
Especially on real pages with large images:
logos, diagrams, or sharp graphics shown near their natural size?
object-fit, or cross-origin images?
When reporting, please include: browser + OS, the export method (toPng/toSvg/β¦), scale/dpr, and ideally a before/after screenshot or repro.
Thanks a ton π β this one could make a real difference for image-heavy captures, and your testing is what lets it ship with confidence.
Beta Was this translation helpful? Give feedback.
All reactions