Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 629 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 629 Bytes

sample-imageresizing-code

This is the sample code repository for my explanation article about image resizing and compression for websites.

You can find the document here.

The sharp_binaries folder contains pre-compiled binaries for Sharp.js version 0.30.7 on x86_64 architecture.

The cdn_code folder contains a sample function for enabling CDN distributions to send Content-Disposition HTTP headers with image files in specific situations, to allow download behaviour.

The serverless_code folder contains sample code for resizing an image via Sharp.js on AWS Lambda.