Add MIME Type Definitions for JPEG‑XL Support #627
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces new MIME type definitions and conversion rules to enable proper recognition of JPEG‑XL files in cups‑filters. With these changes, CUPS and associated utilities (e.g. cupsfilter) will be able to correctly identify and process JPEG‑XL files based on their content and file extension.
Changes Overview
MIME Types
mime/cupsfilters.types
priority(150)
was added to ensure that this MIME type has a higher priority compared to similar image formats, so that JPEG‑XL files are correctly identified.MIME Conversion Rules
cupsfilters-individual.convs
,cupsfilters.convs
, etc.)image/jxl
) to the appropriate filter chains.Testing and Verification
image/jxl
by checking with MIME detection tools.cupsfilter
utility and confirmed that the new MIME type rules enable proper file detection.Future Work
Background
This contribution is part of my ongoing work to modernize image format support in cups‑filters. I originally contributed MIME type modifications during the WoC 5.0 event organized by IIIT Kalyani, and I look forward to continuing my contributions to further enhance the project.
GitHub Repository: https://github.com/TitikshaBansal/cups-filters
Branch:
features/jpegxl-mime-support
Thank you for your review. I look forward to any feedback and suggestions for further improvements.
Best regards,
Titiksha Bansal