Version History

- Show number of TinyPNG compressions in the current month if the service is enabled and an API key is provided.

- Fix query error when clearing the cache and 'Clear cached thumbnails' is checked on.

- Code improvements.

- Improve query to get a list of files that need to be optimized. (huge performance win)
- Fix bug if job stopped unexpectedly and progressbar wasn't set on next run.

- Fix 'Call to a member function advance() on null' error when running the job manually.

- Bump minimum version required to 8.3.1 to improve the CLI mode of the automated job.
- Remove the 'image-optimizer-optimize' CLI command in favor of the 'c5:job image_optimizer' command.
- Add progress bar to automated job, when executed via CLI.
- Add $jSupportsQueue property for improved display on Automated Jobs page.
- Remove version compare condition in ThumbnailFileList.
- When flushing the cache, the cached images need to be deleted from the ImageOptimizerProcessedFiles table. There was a bug in the LIKE statement.

- Fix query error when clearing the cache and 'Clear cached thumbnails' is checked on.

- Add an 'image-optimizer-optimize' CLI command with progress bar.

- Fix 'touch' bug that was creating temp files.

- Save original file size in database, because it'd be missing for thumbnails otherwise.
- Improve truncating / resetting all files.

Note: please do the add-on upgrade, otherwise the database columns won't be added.
Also, you might see some files that are now 0KB (original file size), this is only the case for
existing files. Please reset all files if you want the statistics to be renewed.

- Add 'Former' and 'Current' file size to Optimized Images page.
- Translation fixes.

- Show thumbs on Optimized Images page.

- Hook into thumbnail delete event. This will make sure that if thumbnails are deleted
the associated statistics are also removed. This e.g. applies to a thumbnail 'Rescan'.
The on_thumbnail_delete event will be available in the next 8.4.0 release.

- Improve speed for thumbnails and cache images. This will lead to smaller queues.

- Show total gained file size on Optimized Images page.
- Add "Automated Jobs" button to Optimized Images page.
- Link from Automated Job to Optimized Images page.

- Add review notification.

- Get rid of ImageOptimizerProcessedCachedFiles table.
- Combine entities and repositories for simplicity.
- Make sure path for static files is consistently stored.
- Skip PNG files if TinyPNG service is used, because concrete5 / Imagine
has a bug with transparent PNG-8 images.
- Add info column to optimized images table and display why files are skipped.
- Add install notes.

Note: This will flush statistics for all thumbnail and cache images.
This might lead to extra costs when you are using TinyPNG.

- Fix bug with cache images. The getThumbnail method also uses the modification date of a file.
We'll now reset the modification time after optimization, to prevent the creation of a new cache file.

- Move pages to Dashboard > Files > Image Optimizer.
- Make sure old page is deleted (if it exists).
- Improve settings page with better tooltips / styling.
- Fix compatibility issue with `isBuilt` column on 8.3.0 and lower.
- Add install notes.

- Add setting to include thumbnail images. (default=ON)
- Make sure images from /files/thumbnails are included.
- Add tooltip help texts to setting page.

- Add an extra warning to inform site owners that they need to install
or configure optimizers before running the job.

- Add link to FAQ when optimizer doesn't gain file size.

- Add "Don't optimize images bigger than ... KB" setting.

- Fix conditions for 'proc*' functions.

- Do not run local optimizers if 'proc_open' or 'proc_close' are not available.

- Fix 'Class log/exceptions does not exist' error on older v8 versions.

- Fix EventDispatcher issue on version 8.0. (the interface is not instantiable)

- Add 'Max number of optimizations per month' setting.
- Improve translations.
- Fix problem with Installer class.
- Upgrade to Symfony Process 3..8 (coming from 3.3.8).

- Catch exceptions while Processing items.

- Add TinyPNG support.
- Refactor code base.
- Fix Psr6Cache issue.

- Update icon.

- Use truncate to prevent high auto increment number when cache is clear often.
- Keep thumbnail records if 'thumbnails' are not removed during cache clear.
- Change how the total saved file size is calculated.

- Fix processing cache images that reside is a sub directory.

- Fixed compatibility issue with concrete5 v8.0 and v8.1.
- Fixed link in after_install dialog.

- Clear Flysystem cache during processing.

- Add 'post install' screen with links to settings and Automated Jobs.
- Fix empty checkboxes issue after 'Clear log processed files'.

- Approved by PRB

- Remove check for number of storage locations upon installations.
- Remove all dependencies except for Symfony Process.
- Remove PHP 7.x requirement.
- Add a check for a valid token on settings page.
- Add a success message on settings page.
- Add a check for the batch size to make sure it is at least 1.
- Add a button on the settings page to "Automated Jobs".
- Add a button to clear the log of processed files.
- Fix default settings upon installation.
- Fix total bytes of saved disk space bug.
- Upgrade to Symfony Process 3.3.8 (coming from 3.0).
- Retrieve total saved disk space from config value, because tables can be flushed.
Note: thanks for @JohnTheFish for extensive review.
- Update icon.

- Code cleanup as part of PRB review.

- Remove 'final' from entity classes.

- Fix bug saving file size reduction for file manager files.

- Fix die statement on single page
- Remove redundant closing label tag

- First submission