Is there a way to force crop/resize the uploaded image to square say 512x512px?

Support MB User Meta Is there a way to force crop/resize the uploaded image to square say 512x512px?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35291
    joie.hadi.nata.tan@gmail.com[email protected]
    Participant

    Is there a way to force crop the uploaded image to square ?
    Thank you

    #35318
    Long NguyenLong Nguyen
    Moderator

    Hi,

    No, unfortunately. Meta Box image fields do not support cropping image size after uploading. You can register a custom image size and display the image with that thumbnail size.
    Read more on the documentation https://developer.wordpress.org/reference/functions/add_image_size/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.