The checkbox 'Compress with TinyPNG' is not visible in the image style configuration page when you have an api key configured and the 'Enable TinPNG image action' checkbox is checked.
When you have an api key and the TinyPNG image action is enabled, the checkbox should be visible.
Faulty code in the tinypng.module at line 73, in the function tinypng_form_image_style_edit_form_alter:
if (
!empty($config->get('api_key'))
|| empty($config->get('image_action'))
) {
return;
}
I understand the code above like this: the checkbox is not added if the api_key is not empty or if the TinyPNG image action is not enabled.
The correct condition should be: the api key is empty or the TinyPNG image action is not enabled.
Comments
Comment #2
faeby commentedHere is the patch that fixed my problem.
Comment #3
faeby commentedComment #5
tikaszvince commentedHi @faeby,
Thank you the contribution. It will be part of the next release.