andyzg / gallery

Visual Portfolio Generator with no extra installation
http://andyzhang.net/gallery
MIT License
364 stars 282 forks source link

Reduce Image Size #7

Closed andyzg closed 6 years ago

andyzg commented 6 years ago

macOS users can use sips command line tool to resize all images using sips -Z {image-size} photos/**/*.jpg Using this, we can keep a separate copy of the original, and load the compressed copy first. The original can then be loaded if the user clicks on an image. The page load speed is much smaller as a result.