In an effort to improve scalability and speed, I have been using the free Amazon S3 and CloudFront plugin by Brad Touesnard. This plugin for the most part has worked flawlessly by uploading the image to my s3 account and then saving the path of the full image and all thumbnails in the word press post then deleting the local files after the files have been uploaded to amazon s3.
However it looks like upfront is having some issues that are causing image insertion and gallery insertion to fail.
Upon saving an image insertion upfront is attempting to resize the photo and re-save the image. However upfront is most likely attempting to do this with a local file path that doesn’t exist which is causing the failure. Its even being naughty and trying to resize the photo when only “original” size is selected on a single image embed.
1. Create a network admin toggle for the upfront theme that allows says: “allow for upfront resizing” if selected no then cropping of images would be disabled and thumnails would be used from the images already available.
2. When resizing perhaps use a different method that allows for remote urls that amazon s3 plugin is using that point to amazon s3. Below I will attach a code snippet on what functions to use to perform these actions.