Skip to content
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

fix: No image displayed when ImageResizeService throw an error - EXO-74337 #651

Closed
wants to merge 2 commits into from

Conversation

Jihed525
Copy link
Contributor

Before this fix, in some case, the ImageResizeService can throw an error. I add a unit test with a specifi jpeg image generating this error : the jpeg metadata have different format (EXIF, JFIF ...), and jdk default image reader only support EXIF and JFIF. When a jpeg image have a different metadata format, the ImageReaderService is not able to read it, and throws an error. This commit ensure that, in this case, the service return the original image instead of nothing

Resolves Meeds-io/meeds#2418

(cherry picked from commit 9e65276)

…74337

Before this fix, in some case, the ImageResizeService can throw an error.
I add a unit test with a specifi jpeg image generating this error : the jpeg metadata have different format (EXIF, JFIF ...), and jdk default image reader only support EXIF and JFIF. When a jpeg image have a different metadata format, the ImageReaderService is not able to read it, and throws an error.
This commit ensure that, in this case, the service return the original image instead of nothing

Resolves Meeds-io/meeds#2418

(cherry picked from commit 9e65276)
@Jihed525 Jihed525 enabled auto-merge (squash) November 5, 2024 08:48
@rdenarie rdenarie marked this pull request as draft November 5, 2024 08:48
@rdenarie rdenarie marked this pull request as ready for review November 5, 2024 08:48
@Jihed525 Jihed525 closed this Nov 5, 2024
@Jihed525 Jihed525 deleted the patch654-2 branch November 5, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants