Merging Images from S3 through Composer
When attempting to merge images that are stored in an S3 bucket with Composer, you will need to apply the following steps:
- Remove any access restrictions to your public facing S3 bucket.
-
Edit the Bucket Policy and input the following JSON:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowPublicRead", "Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::image-test-cm-4894/*" } ] }
- Ensure that “Block Public Access” is set to Off.
-
Confirm that all other settings remain as the default for the bucket:
- Object Ownership = Bucket owner enforced
- ACLs disabled
- No CORS configuration
-
When uploading an image, mark Grant public-read
access in the Predefined ACLs section.
Note:
With these settings merges are successful when:
- using the Image tag for .jpeg and .png
- using the IncludePicture
tag for .jpeg
This does not work using the IncludePicture tag for .png