Is there a way to generate on the fly, an image size that doesn't already exist ? For example, in my theme, it would be nice if I could get an image size with a function like :
get_image_size($image_id, $length, $width, $cropped)
If the image already exist, Wordpress could serve me that image (image object or just the URL), if not, Wordpress could generate this new image in the right folder (it will be a little bit longer for the first time).
There is some native or custom function to achieve this ?
Thank you