- This topic has 5 replies, 2 voices, and was last updated 7 years, 3 months ago by
Tom.
-
AuthorPosts
-
January 21, 2019 at 12:40 pm #788307
Meghan
Hello,
I have come across a problem when setting the image sizes to use for blog archive and post featured images.
I enter height and width, and even though an image file already exists with the exact dimensions I receive this error:WPSP_Resize.process() error: Image must be local: https://s3-eu-west-2.amazonaws.com/..jpgAll media for my website is on AWS, there are no duplicate local copies.
How can I make it work for non-local files?
I notice this error also occurs when setting image size in the wpshowposts plugin.
Can you add an option to select a pre-existing image size, such as thumbnail, medium, large, full?
January 21, 2019 at 5:01 pm #788487Tom
Lead DeveloperLead DeveloperHi there,
Are you using WP Show Posts to display your posts? In that case, the default resizer does require you to use local images.
If you are using WPSP here, you can use this filter to change the default size:
add_filter( 'wpsp_default_image_size', function() { return 'thumbnail'; } );January 22, 2019 at 4:57 am #788799Meghan
Hi Tom
I am using GeneratePress theme with the pro plugin and WPShowPosts and both have this issue.
Would it be possible to add the ability to resize non-local files in a future version? WordPress core and other plugins work with offloaded files as if they are local, including the plugin Regenerate Thumbnails.
Many thanks, for your help, and by the way, thanks for your great theme!
January 22, 2019 at 8:44 am #789126Tom
Lead DeveloperLead DeveloperOn-the-fly image resizers typically don’t work with off-site images, unfortunately.
The filter I mentioned above should work for WPSP – you’ll just need to make sure the width/height options don’t have values.
Then for GP, you can use a similar filter:
add_filter( 'generate_page_header_default_size', function() { return 'thumbnail'; } );We’re looking into better solutions than the on-the-fly resizers we’re using right now. They have quite a few limitations unfortunately.
January 23, 2019 at 12:46 am #789689Meghan
Hi Tom,
Thanks for the advice. Looking forward to seeing the improvements in this area.
January 23, 2019 at 7:53 am #790117Tom
Lead DeveloperLead DeveloperNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.