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

update the constants in MimeTypes to reflect current standards #42

Open
SingingBush opened this issue Feb 12, 2024 · 0 comments
Open

update the constants in MimeTypes to reflect current standards #42

SingingBush opened this issue Feb 12, 2024 · 0 comments
Assignees

Comments

@SingingBush
Copy link
Owner

SingingBush commented Feb 12, 2024

mime types in barcode4j are pretty old and in some cases use the x- prefix that's used to indicate non-standard mime types. For example; the mime type for png currently used image/x-png instead of the image/png value as defined by the png ISO/IEC standard in 2004.

This can result in:

java.lang.UnsupportedOperationException: No BitmapEncoder available for image/x-png

To prevent any breaking changes for users tests should be in place to ensure that both the standardised and non-standard values work with the code.

@SingingBush SingingBush self-assigned this Feb 12, 2024
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

No branches or pull requests

1 participant