Simple image optimizer for JPEG, PNG and GIF images on Linux, MacOS and FreeBSD.
Fixed quality in cjpeg/djpeg compression. This increases the size of the output JPEGs. In the future I will try to adjust this for better compression without loss of quality.
Added check for empty temporary file after decompress image with djpeg.
Optimization with djpeg/cjpeg is skipped if decompressed file is empty. This can occur if input file has CMYK colorspace or when other decompression errors occur.
Fixes:
Fixed PNG file permissions if script does not work from files owner.
Added:
Other:
Added support for working script on MacOS 10.10+ with automatic install dependences.
New:
Others:
New:
Changes:
Features:
Fixes:
And some minor bug fixes and code refactoring.