Force regenerate
-
Hi, it would by possible to force regenerate sizes with disabled all checkboxes in media options? Im using ACF Image Crop – it is so useful for create only exactly resolution for SLIDER size for example. ..instead define own SLIDER resolution in functions.php and generate SLIDER resolution for each images in upload dir – which is waste of disk space / cpu load. So this plugin is awesome 🙂
But now, if I have disable “original” size – there is no way generate image from ACF image crop.
Now plugin (ACF image crop) dont have do_action call after create image, but I can send pull request in github.So there are two way
1) create FORCE button in media listing, which is not connected to settings in media screen
2) provide some API for compress image belowadd_action('acf_image_crop_after_image', 'acf_image_crop_after_image', 10, 2); function acf_image_crop_after_image( (int) $attachment_id ) { tiny_compress_image( $attachment_id, 'original' ); // instead of 'original'. there can be 'all' for every registered image resolutions }
The topic ‘Force regenerate’ is closed to new replies.