• Hello,
    I am experiencing an issue with the plugin. I’ve connected the plugin successfully with Google Cloud Storage and tested it by creating a dummy post. The image associated with the post was uploaded to the cloud correctly. However, when I moved the post to Trash and then permanently deleted it, the image still appears in the media library.

    My concern is whether the image data is actually being deleted from the cloud storage or not. Could you please confirm if the plugin is supposed to remove the image from Google Cloud Storage when a post is permanently deleted? If it should, is there any configuration or step that I might have missed?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi Maunish,

    WP Offload Media Support Team here, Thanks for reaching out with your query we would be happy to assist.

    As you have observed, deleting a post (moving it to trash) does not delete the images that are within that said post, as this is the default behavior of WordPress.

    And since the image is not deleted in the Media Library, this also mean that the image within the Google Cloud Storage is also not deleted.

    Only when you delete the image directly in your Media Library does WP Offload Media also deletes the corresponding files within your Google Cloud Storage.

    Hope that this helps,
    Thank you.

    Thread Starter maunish31

    (@maunish31)

    Okay, Thank you.
    Also, we do face another issue with the website’s existing images. Here are the settings sc: https://prnt.sc/9TTgVqMaulGS
    In our website thumbnail images are not loading it gives a 404. https://prnt.sc/Itmw1m3HCF_h We can access the original image by removing the 123X456 from the URL, FYI we are using Motors theme. Also, the path will update for all of the images that are not off-loaded right? So do we need to do anything for the existing images or it should work fine?
    i.e:
    storage.googleapis.com/wp-content/uploads/2024/07/07092319/image-1-101-255×191.jpg – 404
    storage.googleapis.com/wp-content/uploads/2024/07/07092319/image-1-101.jpg – Working.

    There are multiple custom image sizes are added via the add_image_size hook with the after_setup_theme action so these images will be off-loaded right? I believe this image gives 404.
    Please let me know.
    Thanks in advance.

    • This reply was modified 6 months, 3 weeks ago by maunish31.
    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi Maunish,

    Could you confirm for us if this image is in your Google Cloud Storage bucket?

    storage.googleapis.com/wp-content/uploads/2024/07/07092319/image-1-101-255×191.jpg

    Also, could you go to the Support tab of WP Offload Media Lite, and check the “Names and Dimensions of Image Sizes” section to see if the size above (255×191) is included in the list? Kindly send us the list as well if possible.

    Only registered images listed there are the ones that were able to be detected by WP Offload Media, and they are the only sizes that will be offloaded to your bucket.

    Thread Starter maunish31

    (@maunish31)

    Number of Image Sizes: 20

    Names and Dimensions of Image Sizes:
    thumbnail (150x150)
    medium (300x300)
    large (1024x1024)
    stm-img-380-240 (380x240)
    stm-img-120-120 (120x120)
    stm-img-1110-577 (1110x577)
    stm-img-796-466 (798x466)
    stm-img-350-356 (350x356)
    stm-img-190-132 (190x132)
    stm-img-255 (255x0)
    stm-img-255-x-2 (510x0)
    stm-img-280 (280x0)
    stm-img-280-x-2 (560x0)
    stm-img-350 (350x0)
    stm-img-350-x-2 (700x0)
    stm-img-398 (398x0)
    stm-img-398-x-2 (796x0)
    woocommerce_thumbnail (300x300)
    woocommerce_single (600x0)
    woocommerce_gallery_thumbnail (100x100)

    Above the list of image sizes. For the sections that we faced issue was added by elementor and we have selected the Image size as Theme default sc: https://prnt.sc/bu5qig73JXSO
    Here are few questions:
    How can we add custom size to the above list? Also, after adding new size the updated thumbanils will be automcatilly added to the bucket right?

    Also, for the media files that has been there before the we added plugin, that files shold load with the original wordpress path or the bucket path?

    Thanks for you help.

    Thread Starter maunish31

    (@maunish31)

    Also, as per your blog related to Elementor intigartion with your plugin.?https://deliciousbrains.com/wp-offload-media/doc/elementor-integration/
    We couldn’t find this settings and when we use custom size for image in elementor image module we are not getting image. Is there any way to work this around?
    And when upload any image as a featured image it’s not loading https://prnt.sc/yk9IhI29rXF8 it’s default wordpress image size and it’s not showing too.

    Plugin Support Delicious Brains Support

    (@dbisupport)

    Hi @maunish31,

    Thank you for your response.

    Can you please try adding those sizes via the add_image_size() function to your site? You would then need to use a plugin like Regenerate Thumbnails to create the images, and they will be automatically offloaded to S3.

    When running a bulk Regenerate Thumbnails, it’s probably worth checking the box to ‘delete unneeded sizes’ so that it cleans up what it can.

    As for existing media before the plugin was installed, the lite version can only offload newly uploaded files. So those files will still load from your server.

    Integrations with other plugins are not available on the lite version as well. You may refer to WP Offload Media Lite’s www.remarpro.com Plugin Page for more details.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Does the file will be removed after we delete the post/page/CPT?’ is closed to new replies.