• Resolved leanderbraunschweig

    (@leanderbraunschweig)


    Hi there,

    what a great plugin – many thanks for providing this! I am a customer of ShortPixel’s image optimization also ??

    Upon testing the plugin I noticed that it does not update the image when using the block editor (core/image + core/media-text) – I have to manually replace the image here…

    From a regular user perspective this is very unintuitive and I was wondering if you have come across this issue already and what could be done to address it?

    Seems like this happens when I am uploading a new image with different dimensions which then obviously leads to broken thumbnail-links (f.ex. if the previous link was my-image-819×1024.jpg and the new thumb is my-image-1536×1024.jpg then the editor cannot render it)…

    Looking forward to hearing back from you!

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

    (@petredobrescu)

    hello @leanderbraunschweig and thanks for this report.

    We are preparing a new release for this plugin, so your message is right on time ??

    Can you please give us a bit more details about what doesn’t work? We did tests with the standard Image blocks and it works quite well in our testing. In order to be able to reproduce the issue you are facing, please send us step-by-step instructions on how to reproduce it, as well as the list of active plugins. A screen recording would be even better, as reproducing the issue in our test environments is key to being able to solve it.

    Thanks, I look forward to getting more details about this!

    Plugin Author Pedro

    (@petredobrescu)

    I think I might have understood what you are referring to. Were you trying to replace an image with the “Replace” option form the top right of the image block?

    If yes, then that’s not added by our plugin, it’s a standard WordPress/Gutenberg functionality and isn’t exactly what our plugin does.

    If you want to replace an image from the block editor, then from that menu choose “Open Media Library” and then scroll down on the right side of the screen, at the “Attachment Details” option, where you should see the “Replace media” section with an “Upload new file” button. Please note that you might need to first select another image and then go back to the already selected image, since for some reason, the Gutenberg hooks aren’t always fired for a selected image (we’re still looking into why that happens).

    Thanks, I look forward to getting your feedback about this!

    • This reply was modified 1 year, 8 months ago by Pedro. Reason: the screenshot didn't upload to my reply
    Thread Starter leanderbraunschweig

    (@leanderbraunschweig)

    Hi @petredobrescu,

    many thanks for getting back!

    Upon recording the screencast for you I have noticed that the image asset in the editor now actually gets replaced just fine… ??

    Not sure what the issue was here to begin with but you are obviously rewriting the thumbnail paths from my-image-1536×1024.jpg to my-image-819×1024.jpg and as such the image isn’t broken ??

    Sorry to have bothered and I am again very grateful for this plugin as it also included the enable-media-replace-upload-done-hook that I could use for triggering another step in the replacement logic.

    Kudos!

    Plugin Author Pedro

    (@petredobrescu)

    Great, thanks for the confirmation @leanderbraunschweig !

    Enjoy the plugin ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Block editor support? (core/image + core/media-text)’ is closed to new replies.