Aim-Educational / livestock-website

0 stars 0 forks source link

Optimise images #45

Closed BradleyChatha closed 5 years ago

BradleyChatha commented 5 years ago

Find a library that can do image manipulation;

Reformat the image into WebP, due to it's size + quality benefits, and store this into the database;

Add query parameters onto CritterImage to control size, instead of using HTML;

Do the conversion on the server before sending the image (reduces amount of data to send);

Possibly modify the database so we can cache this various sizes, otherwise the server will just keel over from a single page of images.