Support » Plugin: WP Bootstrap Gallery » [Bug] WP Offload S3 plugin incompatibility caused by Timthumb library

  • wube



    I see that the plugin uses Timthub library on the front-end in order to resize images. This library causes an incompatibility issue with the WP Offload S3 plugin.
    WP Offload S3 is a plugin that transfers images to an Amazon’s S3 bucket and rewrites URL so that URLs point to an external URL. Because of this, Timthumb can’t handle images resizing (i can see error 400 in the JS console).

    There are 2 reasons why it’s happening:

    – Timthumb can’t resize images from a remote URL
    – Even if it could then URLs are not properly formatted – Amazon S3 would reject requests with a query string anyway.

    So I’m afraid that this issue is not only WP Offload S3 plugin specific. This problem will occur with any WP plugin that serves images from a remote server (for instance caching plugins that serve images from CDN).

    BTW, why do you use Timthumb when WordPress can handle images resizing on its own? I believe that you have some reason, but it would be good if there were a filter and/or an option in the plugin’s settings that would allow for Timthumb disabling.

    // EDIT:
    I’m sorry. I’ve just found that I can disable Timthumb in the plugins’ options!

    • This topic was modified 4 years, 11 months ago by wube.
  • The topic ‘[Bug] WP Offload S3 plugin incompatibility caused by Timthumb library’ is closed to new replies.