We created this extension to add immediate image optimization and CDN functionality to Magento 2.
composer require tinify/tinifycdn-magento2
Clone or download the contents of this repository into app/code/Tinify/TinifyCDN
.
After installation, run bin/magento setup:upgrade
to make the needed database changes and remove/empty Magento 2's generated files and folders.
After installation, run:
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy [locale-codes, e.g. nl_NL en_US
bin/magento cache:flush
Done!
To use this module you need an active Tinify CDN account. You can connect to your account using the 'Connect to your Tinify Account' button in Stores / Configuration / Tinify / Tinify CDN.