You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2020. It is now read-only.
We're currently using WPThumb to provide caching for images in RSS feeds and just had a support ticket that revealed what appears to be an interesting little bug in wpthumb().
Obviously, the filename has a few quirks in it. When the image is downloaded and stored in the cached folder, everything appears to be functioning well. For example, that image will get stored some place like wp-content/uploads/cache/remote/static-wixstatic-com/3427518221.jpg
However, when we attempt to look up the cached path for it later, wpthumb() returns an URL like wp-content/uploads/cache/remote/static-wixstatic-com/3427518221.00_jpg_srb. Note the extension is .00_jpg_srb rather than .jpg
In the meantime, I've worked around this with our customers by using the following filter:
We're currently using WPThumb to provide caching for images in RSS feeds and just had a support ticket that revealed what appears to be an interesting little bug in wpthumb().
The URLs we're having issues with are of the following type:
http://static.wixstatic.com/media/d0e46d_df8b7f8076b84f9e993305c484132979.jpg_srb_300_300_75_22_0.50_1.20_0.00_jpg_srb
Obviously, the filename has a few quirks in it. When the image is downloaded and stored in the cached folder, everything appears to be functioning well. For example, that image will get stored some place like wp-content/uploads/cache/remote/static-wixstatic-com/3427518221.jpg
However, when we attempt to look up the cached path for it later, wpthumb() returns an URL like wp-content/uploads/cache/remote/static-wixstatic-com/3427518221.00_jpg_srb. Note the extension is .00_jpg_srb rather than .jpg
In the meantime, I've worked around this with our customers by using the following filter:
The text was updated successfully, but these errors were encountered: