Приложение: imgpress CLI tool for encoding and compressing images for optimal web use Written in Python utilizing the Pillow imaging library. **Usage** Pass in at least an input file and image format. Resize test.jpeg to 1000 x 1000, set quality to 75, and save file as test-1000.jpeg: `$ imgpress test.jpeg -f JPEG -r 1000 1000 -q 75 -o test-1000.jpeg` Resize test.jpeg to 1000 wide while preserving aspect ratio, encode to WEBP format, and set quality to 65: `$ imgpress image.jpeg -f WEBP -r 1000 0 -q 65`
|