joppuyo / acf-image-aspect-ratio-crop

Image Aspect Ratio Crop field for Advanced Custom Fields
https://wordpress.org/plugins/acf-image-aspect-ratio-crop/
GNU General Public License v2.0
106 stars 16 forks source link

Disable thumbnail generation for cropped images #10

Open method71 opened 5 years ago

method71 commented 5 years ago

Wordpress generates thumbnails for downloaded images (150x150). And I do not disable this feature because it is responsible for displaying thumbnails in the media library.

But thumbnails are also generated for cropped images, and they take up disk space, but are not used, which is not very good.

It would be great if there was an option to disable creating copies of cropped images.

joppuyo commented 5 years ago

Hey, thank you for the feature suggestion. I created this plugin mainly for the use with responsive images (with the help of the scrset attribute and multiple image sizes).

However I recognize that there may be need to generate only specific resolutions (for example the recommended size for Facebook Open Graph share images is 1200x630).

I'l look into adding a option to choose which images are generated on field-by-field basis. No release dates unfortunately, I'll do it when I have time.

guytzhak commented 4 years ago

Want to help if I can :)

sebalzert commented 4 years ago

First of all - thank you for this great plugin!

Are there any news regarding this issue? It would be a nice improvement if the plugin optionally prevented wordpress from generating image sizes or at least automatically deleted them as soon as they are created. For the "Preview Size" the thumbnail (or any other size) created for the original image could be used.