Skip to content

JPEG Image Error #518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
6 tasks done
emrealparslan93 opened this issue Nov 13, 2023 · 3 comments
Closed
6 tasks done

JPEG Image Error #518

emrealparslan93 opened this issue Nov 13, 2023 · 3 comments
Assignees
Labels

Comments

@emrealparslan93
Copy link

emrealparslan93 commented Nov 13, 2023

Describe the bug
Some of JPEG images are not accepted for no reason?
To Reproduce

  1. Go to link: https://media.finedinemenu.com/lQjTakxVFI/9b415611-c1d7-4e81-afc9-46845757abf4.jpeg
  2. You will see the error below:
    {"status":500,"code":"RequestTypeError","message":"The file does not have an extension and the file type could not be inferred. Please ensure that your original image is of a supported file type (jpg, png, tiff, webp, svg). Refer to the documentation for additional guidance on forming image requests."}

Expected behavior
Serverless Image Handler should be able to show the JPEG formatted image.

Please complete the following information about the solution:

  • Version: 6.2.3
  • Region: us-east-1
  • Was the solution modified from the version published on this repository? No
  • If the answer to the previous question was yes, are the changes available on GitHub? -
  • Have you checked your service quotas for the sevices this solution uses? Yes
  • Were there any errors in the CloudWatch Logs?
    2023-11-13T10:21:56.030Z d6a5bd10-5dae-486d-bb6a-5517cb59773a ERROR ImageHandlerError: The file does not have an extension and the file type could not be inferred. Please ensure that your original image is of a supported file type (jpg, png, tiff, webp, svg). Refer to the documentation for additional guidance on forming image requests. at _ImageRequest.getOriginalImage (/var/task/index.js:39154:13) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async _ImageRequest.setup (/var/task/index.js:39101:29) at async Runtime.handler (/var/task/index.js:39476:30) { status: 500, code: 'RequestTypeError' }

Additional context
Original File:
9b415611-c1d7-4e81-afc9-46845757abf4

@simonkrol
Copy link
Member

Hi @emrealparslan93

This error is popping up due to a missing JPEG file signature when we infer image types. We hope to include the fix in the next release, but in the meantime, you should be able to include the fix in your deployment by including the change from #489 and redeploying following the steps in the README.

Let me know if you need any help,
Simon

@emrealparslan93
Copy link
Author

Hello @simonkrol ,

I will include the change until you release the next version. Thank you for your response.

Best,

@dougtoppin
Copy link
Contributor

addressed in v6.2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants