dyreschlock / schlock-website

Personal Website code to be run locally or generate a static website hosted through github pages.
http://theschlock.com/
0 stars 0 forks source link

Convert all Images to WebP format #65

Closed dyreschlock closed 1 year ago

dyreschlock commented 1 year ago

All images used for the site should be converted into WebP format. This has two large benefits:

  1. WebP files are 60-80% smaller (in file size) than PNGs and JPGs, so pages will load noticeably faster. #7 #63
  2. We will have new Images in GoogleDrive with modern links. All older links are broken at the moment. #62

Image objects should have two additional fields added. One field for the Google ID of the corresponding webP file, and one field for the direct image link for the corresponding webP file. Then, the image object will use these when determining the Image Link for the image.

Additionally, there should be an added process to the Thumbnail Generator to create webP files for all thumbnails.

And additionally beyond that, as part of the Google ID generation, the webP IDs and Links should be fetched.

dyreschlock commented 1 year ago

Added WebP-IO from here: https://github.com/sejda-pdf/webp-imageio

dyreschlock commented 1 year ago

Image have been converted into webP format. Use issue #62 to determine how to get them actually facing on the website.