• Resolved marcorroma

    (@marcorroma)


    Hi, is it possible to use Imsanity to reduce the size of the images to load in gutenberg?
    When I upload a single image in the gutenber’s blocks (in a post edit), the size of the image is not reduced, the same problem if I create a gallery.
    Instead it works correctly if I upload the image with the “feautured image” button
    Hello and thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Imsanity triggers anywhere WordPress runs the wp_handle_upload filter, which should be running in all those cases.
    However, the dimensions used, may not line up with that you’re expecting if Gutenberg has changed some of the request parameters they send with an image. That wouldn’t be surprising at all, I’ll do some testing and let you know.

    Plugin Author nosilver4u

    (@nosilver4u)

    Hmm, an existing post seems to work fine, but adding images to a brand new post seems to be missing something. I get a scaled image using the “image uploaded elsewhere” dimensions.
    Is that what you’re seeing also?

    Plugin Author nosilver4u

    (@nosilver4u)

    Looks like I already had a fix worked out in my dev repository for that specific case! You can grab the updated code from here, otherwise it’ll be in the next release: https://github.com/nosilver4u/imsanity

    Thread Starter marcorroma

    (@marcorroma)

    thank you so much for the support!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cut image gallery’ is closed to new replies.