aws-samples / image-optimization

Simple, performant and cost efficient solution for optimizing images using Amazon CloudFront, Amazon S3 and AWS Lambda
MIT No Attribution
172 stars 106 forks source link

Accessing PDF file leads to Internal Server Error #14

Closed ungeordnet closed 10 months ago

ungeordnet commented 10 months ago

I got an internal Server Error, when accessing an PDF file:

2023-09-06T09:36:36.540Z    eba01686-53e5-467f-8f59-3c05114d8983    ERROR   Invoke Error    {
    "errorType": "Error",
    "errorMessage": "Input buffer contains unsupported image format",
    "stack": [
        "Error: Input buffer contains unsupported image format"
    ]
}

Is there a way to exclude different file format?

achrafsouk commented 10 months ago

hey ! check this https://github.com/aws-samples/image-optimization/issues/12

ungeordnet commented 10 months ago

Nice, thank you for the hint!