Work with not registered custom image sizes
-
Hello!
WordPress 5.6.2
OceanWP 2.0.2
Robin image optimizer 1.5.0Some my sites use OceanWP theme. It is very good and popular theme with a lot of abilities for webmaster. With some settings this theme generates custom size images for article main picture (not article text pictures). This custom image size is not registered as WordPress images sizes (so theme generates them not immidiatly). And this has sense, I think, because site doesn’t need this custom size for all uploaded pictures – just for main article picture. But I think, you’ve already understood problem… ??
In some reason I use Robin Image Optimizer in manual mode, autooptimizing after upload is disabled. So when I start optimizing, custom size images from OceanWP has already been generated. BUT. In case this size doesn’t registered, RIO doesn’t optimize images of this size. And this is real problem, because sometimes images are very big.
I understand, that I can just register in WordPress this OceanWP custom image size. But, as I wrote above, this is not optimal solution – 95% this size images will be unused. Is there any other solution? Maybe, hook/filter for registering custom image size only for ROI? Or something else? I would be grateful for any help.
- The topic ‘Work with not registered custom image sizes’ is closed to new replies.