All versions share revision 1582197 (M146 branch base).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Source: chromium/src/third_party/blink/renderer/platform/image-decoders/jxl/jxl_image_decoder_test.cc | |
| // Regression test for crbug.com/498155364. | |
| // With incremental input, basic image info should not become observable before | |
| // the embedded ICC profile is parsed. | |
| TEST_F(JXLImageDecoderTest, DecodeCmykIccProfileIncrementalNoCrash) { | |
| scoped_refptr<SharedBuffer> full_data = | |
| ReadFileToSharedBuffer(kJxlTestDir, "conformance_cmyk_layers.jxl"); | |
| ASSERT_TRUE(full_data); | |
| Vector<char> full_data_vec = full_data->CopyAs<Vector<char>>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # Usage: | |
| # ./render_i480978106_macos.sh [page_path_or_url] [output_png] | |
| # | |
| # Examples: | |
| # ./render_i480978106_macos.sh | |
| # ./render_i480978106_macos.sh ~/my-host/static-files/i-480978106/index.html | |
| # ./render_i480978106_macos.sh https://static.januschka.com/i-480978106/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Switch Chromium to use local jxl-rs checkout for development | |
| # Usage: ./use-local-jxl-rs.sh [setup|restore|status|clean|bisect|override] | |
| set -e | |
| CHROMIUM_SRC="/home/chrome/chromium_2/src" | |
| CHROMIUM_VENDOR="$CHROMIUM_SRC/third_party/rust/chromium_crates_io/vendor" | |
| LOCAL_JXL="$HOME/jxl-rs_1" | |
| BUILD_GN="$CHROMIUM_SRC/third_party/rust/jxl/v0_3/BUILD.gn" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/third_party/blink/renderer/platform/image-decoders/jxl/jxl_image_decoder.cc b/third_party/blink/renderer/platform/image-decoders/jxl/jxl_image_decoder.cc | |
| index 5cadd5f76b2b7..995f304d6fffa 100644 | |
| --- a/third_party/blink/renderer/platform/image-decoders/jxl/jxl_image_decoder.cc | |
| +++ b/third_party/blink/renderer/platform/image-decoders/jxl/jxl_image_decoder.cc | |
| @@ -16,20 +16,21 @@ | |
| namespace blink { | |
| using jxl_rs::jxl_rs_decoder_create; | |
| +using jxl_rs::jxl_rs_frame_scanner_create; | |
| using jxl_rs::jxl_rs_signature_check; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>screen.orientation.lock() Test</title> | |
| <style> | |
| * { box-sizing: border-box; margin: 0; padding: 0; } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/captcha_eu.php b/captcha_eu.php | |
| index e73a26a..72e549d 100644 | |
| --- a/captcha_eu.php | |
| +++ b/captcha_eu.php | |
| @@ -88,10 +88,16 @@ class PlgCaptchacaptcha_eu extends CMSPlugin | |
| $sdkSrc = 'https://www.captcha.eu/sdk.js'; | |
| - // Load assets, the callback should be first | |
| - $this->app->getDocument()->getWebAssetManager() |
This gist contains the PDFs + rendered PNG outputs from ~/pdf-jxl/.
Because GitHub gists (via gh gist) don’t support uploading binary files directly, the artifacts are bundled as a tarball and base64-encoded.
The tarball contains:
pdf-jxl/zoltan-jxldecode.pdfpdf-jxl/zoltan-jxldecode.pdf.0.png
Add JPEG XL (JXL) image decoding support to PDFium using jxl-rs, a pure Rust decoder. This enables PDFs that embed JXL-compressed image XObjects (per the upcoming PDF Association / ISO standardization work) to render correctly in PDFium.
JXL benefits:
- 30–50% better compression than JPEG (typical for photographic content)
- Lossless JPEG transcoding (recompress JPEG sources without generation loss)
- Progressive decoding
NewerOlder
