• Resolved matshop

    (@matshop)


    I want to resize image file with:

    $original = $path . ‘/2020/06/0000082991492x-3.jpg’;
    $editor = wp_get_image_editor($original, array());
    $result = $editor->resize(1000, 1000, false);

    but returns error becouse original image has 800×800 pixel, and as i can se resize works only for mage image smaller. is there any way to make image bigger?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We’ve not seen any activity on this thread for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_get_image_editor’ is closed to new replies.