perl-Image-JpegMinimal-0.02-alt1 P > @
, 0 9bc9cb7a77b728928667ea232017651ff0da4818 (,NR6hי͕ӓ > 3
?
d # H N T \ |
d
l ( , ` p ( 8 9 : F G @ H ` I X Y \ ] ^
! b
d
e
f
C perl-Image-JpegMinimal 0.02 alt1 create JPEG previews without headers This module implements the ideas from
https://code.facebook.com/posts/991252547593574
to create the data needed for inline previews of images that can be served
within the HTML page while keeping a low overhead of around 250 bytes per
image preview. This is achieved by splitting up the preview image into
a JPEG header which is common to all images and the JPEG image data.
With a Javascript-enabled browser, these previews will be shown until
the request for the real image has finished loading the data. This reduces
the latency and bandwidth needed until the user sees an image.
It turns the following image
=for html
into 250 bytes of image data representing this image:
=for html
The Javascript on the client side then scales and blurs that preview
image to create a very blurry placeholder until the real image data
arrives from the server.
=for html
See below for the Javascript needed to reassemble the image data
from the split header and scan data. Vigor.hasher.altlinux.org RALT Linux ALT Linux Team perl Igor Vlasenko