One-off image sizes?
-
It seems as if the mechanics for generating image sizes for responsive design (srcset, thumbnails etc.) can only use a single set of image sizes across an entire blog/site (I know how to extend that set globally via functions.php and have already done so).
Is there a way to specify additional sizes for a single image in the library?
For example if a single image used in a single post has an unusual natural width, it is easy to specify that it should be shown in such a that size via the editor, but how would one specify that the additional sizes generated for the srcset should correspond to typical multiples of that such as 1.5x and 2x, instead of/in addition to the sizes that are generated for all other images on the blog.
It kind of sucks, in terms of disk space and srcset html bloat for all the other images, to add the one off sizes to the global list in theme/themename/functions.php. But it also sucks to have web site testing tools complain about client-side shrinking to the one-off size.
- The topic ‘One-off image sizes?’ is closed to new replies.