• Resolved Rumores

    (@rumores)


    Hi there,

    First of all, thanks a lot Junaid for this plugin, working like a charm and perfect for what I’m looking for!

    Here’s my question: I try to combine Fly Dynamic Image Resizer with an another great plugin “YoImages” to generate custom cropped image for predefined WP image sizes.

    In my case, WP default image sizes are defined in “functions.php” by “add_image_size” (with “crop” attribute set to “true”) and dynamic image sizes by “fly_add_image_size” (based on my default image sizes ratios to set sizes variations).

    My goal now is to regenerate fly images variations in “/uploads/fly-images/{id}/” each time a new crop is performed via YoImages, by using “yoimg_seo_images_to_update” hook to delete dynamically generated images and rebuilt them when needed, with the new crop positions (x/y values for YoImages crop origin are recoverable with “wp_get_attachment_metadata” where “yoimg_attachment_metadata” values are added).

    As I can’t figure out how to rebuild dynamic images based on a cropped image file instead of its original file, could you please guide me to a solution to do so?

    Thanks in advanced!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Junaid Bhura

    (@junaidbhura)

    Hi Rumores,

    I’m really glad you like this plugin ??

    There is no way to do this at the moment. But I can look at this as a feature request to delete cached images based on ID. Maybe I’ll add this functionality in a future version of this plugin!

    For the moment, you can just delete the cached image folder for that image and the images will get re-generated again.

    • This reply was modified 7 years, 8 months ago by Junaid Bhura.
    Thread Starter Rumores

    (@rumores)

    Hi Junaid,
    Thank you for your answer and sorry for my late reply.

    I’m going to look ahead for an homemade alternative and would post it here if I can find something working (and of course if this kind of feature is not added to your dev log in the meantime!)

    Thanks again for your help and keep on the good work ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Regenerate fly image sizes based on crop position’ is closed to new replies.