Support » Plugin: Image Regenerate & Select Crop » Generate only perfect fit sizes

  • Resolved sebastien8647849

    (@sebastien8647849)


    Hi there. First of all, thank you for the plugin, it looks really helpful. I was thinking when I check the option “Generate only perfect fit sizes” that is would generate the thumbnail with the right size even if the original picture is not big enough.

    For example, let’s say I have a picture with original size 800×600.

    If I ask for a size for ‘custom_size1’, 500, 500, true, it works perfeclty.

    If i ask for a size for ‘custom_size2’, 700, 700, true, I will get a cropped picture of 800×600, because height of original is 600px which is less than 700px. How could I get a 700x700px ? I was thinking that by checking “Generate only perfect fit sizes” I would be able to get this ?

    If i ask for a size for ‘custom_size2’, 900, 900, true, it won’t generate a thumbnail because width and height are bigger than width or height of the original picture. This is fine.

    Thanks for your help and have a good day

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Author Iulia Cazan

    (@iulia-cazan)

    OK. I will assess and let you know how I can adapt the code to work with the scenarios.

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Please upgrade and test again. Let me know if this is fixed.

    Thread Starter sebastien8647849

    (@sebastien8647849)

    Thank you very much Iulia, it’s perfectly working now.
    Do you know what happen if “generate only perfect fit size” is unchecked while “attempt to upscale when generating only perfect fi sizes” is checked ?
    Best regards to you.

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hello,

    Yes, the result would be:
    500×500 -> 500×340
    500×300 -> no crop
    600×600 -> 576×350
    600×500 -> 576×350
    600×300 -> 500×300
    300×300 -> no crop

    I am marking this as resolved. Please open another thread for other questions, issued.

    Thank you for the review!
    Iulia

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Generate only perfect fit sizes’ is closed to new replies.