Skip to content

Add JPEG XL converter example - #801

Open
Ram-Pavith wants to merge 1 commit into
Imagick:masterfrom
Ram-Pavith:add-jpegxl-converter
Open

Ram-Pavith wants to merge 1 commit into
Imagick:masterfrom
Ram-Pavith:add-jpegxl-converter

Conversation

@Ram-Pavith

Copy link
Copy Markdown

Adds a JPEG XL converter example (examples/convert_to_jxl.php).

Uses Imagick when the ImageMagick build has the JXL delegate (probed via Imagick::queryFormats), otherwise falls back to cjxl (only backend with bit-exact lossless JPEG transcoding), ffmpeg/libjxl, then magick, checking the output JPEG XL signature.

Verified with php -l (PHP 8.5) and real conversions through the chain.

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.

1 participant