• Resolved Roman

    (@vladroman)


    Hello!

    WordPress 5.6.2
    OceanWP 2.0.2
    Robin image optimizer 1.5.0

    Some 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Temyk

    (@webtemyk)

    Hello.

    Robin only works with the media library and registered thumbnails. There are no ways to optimize custom thumbnails.

    Thread Starter Roman

    (@vladroman)

    Roger you. But I think, your developers can easily allow to use hook, which adds custom image size to query from function.php. If they want. ?? Or even add new option to settings panel (maybe for Pro version) for that. This will make your plugin more flexible and attractive compared to the competition.

    Could you be so kind to tell me name of function from plugin code, where list of image sizes is loaded for optimization job? So I won’t waste time for searching it myself through whole code.

    Temyk

    (@webtemyk)

    The plugin only works with the media library and registered thumbnails, which are obtained using standard WordPress functions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Work with not registered custom image sizes’ is closed to new replies.