When using external file schemes such as Amazon S3 there are issues with image style derivatives not being created. This issue and solutions for it have been discussed:, , and . An additional concern of mine, not addressed by these issues, is that I'd rather be able to explicitly declare where the derivative files are stored. I'd like to setup an autoscaling group of web servers which use S3 only for storage of the original images, and local instance storage for derived files. This is currently not possible because image_style_path() sets the scheme for the image style path to match the original image, or use the default file scheme if a path is passed to this function rather than a URI.
I propose that a setting be added to optionally override this behavior and specify where image style derivatives should be stored.
PASSED: [[SimpleTest]]: [MySQL] 46,198 pass(es). View