Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate smaller and compressed versions of images #20

Open
3 tasks
n-peugnet opened this issue Feb 14, 2021 · 1 comment
Open
3 tasks

Generate smaller and compressed versions of images #20

n-peugnet opened this issue Feb 14, 2021 · 1 comment

Comments

@n-peugnet
Copy link
Owner

n-peugnet commented Feb 14, 2021

Todo

  • Along with full size images, generate lighter versions of big pictures (and a link from the smaller one to the original). Parameter to configure the size after which optimized versions are generated.

  • Convert all baseline jpeg images into progressive ones.
    from Wikipedia:

    It is also possible to transform between baseline and progressive formats without any loss of quality, since the only difference is the order in which the coefficients are placed in the file.

    Google engineers think this is a bad idea :

    WebP does not offer a progressive or interlaced decoding refresh in the JPEG or PNG sense. This is likely to put too much pressure on the CPU and memory of the decoding client as each refresh event involves a full pass through the decompression system.

    On average, decoding a progressive JPEG image is equivalent to decoding the baseline one 3 times.

  • Maybe convert png images into webp combined with HTML 5 picture fallback

Useful links for images formats:

@n-peugnet
Copy link
Owner Author

What do you think about this @vincent-peugnet ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant