When attempting to merge images that are stored in an S3 bucket with Composer, you will need to apply the following steps:

  1. Remove any access restrictions to your public facing S3 bucket.

  2. 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/*"
            }
        ]
    }
    JS
  3. Ensure that “Block Public Access” is set to Off. 

  4. Confirm that all other settings remain as the default for the bucket:

    • Object Ownership = Bucket owner enforced

    • ACLs disabled

    • No CORS configuration

  5. When uploading an image, mark Grant public-read access in the Predefined ACLs section.

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