Add image size where largest possible proportional size is generated
The Approach I think the best approach is to create an image size “on the fly”, just before the images is resized. You can do that using ‘intermediate_image_sizes_advanced’ filter hook. That allows you to edit the size to be generated, but being aware of the current image size, that is stored in the array $metadata … Read more