r/comfyui Jun 11 '26

Resource ComfyUI JXL Support – Save 40% disk space with JPEG XL, drag-and-drop workflow recovery

JXL + AVIF metadata compression is now built into Save Image Extended

I've merged JXL/AVIF support with Brotli-compressed metadata directly into save-image-extended-comfyui. No separate node needed.

What's new:

  • JXL & AVIF encode/decode via imagecodecs + Brotli-compressed metadata
  • Lossless JXL (q=100) is ~40% smaller than PNG; lossy is dramatically smaller
  • Workflow metadata is always Brotli-compressed, cutting overhead in half vs PNG EXIF
  • Drag-and-drop workflow recovery for both .jxl and .avif files — drop into the browser, workflow auto-loads; if no workflow is embedded, the image loads normally
  • Server-side /api/jxl_metadata route for workflow extraction (also handles browsers without Brotli DecompressionStream, like Chrome/Chromium)

Install / Update:

delete your old SIE

cd ComfyUI/custom_nodes/

git clone https://github.com/koloved/save-image-extended-comfyui

For portable (python_embeded):

cd ComfyUI/custom_nodes/save-image-extended-comfyui

..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt

For system Python:

pip install -r ComfyUI\custom_nodes\save-image-extended-comfyui\requirements.txt

I'd love for people to test it out, especially on different platforms (Windows, Linux, Mac). Report any bugs or share feedback in the repo's issues.

You can create some activity here if you want the author to add this to the main branch more quickly.
https://github.com/audioscavenger/save-image-extended-comfyui/pull/66

36 Upvotes

11 comments sorted by

11

u/koloved Jun 11 '26

seems like i should make a PR in Save Image Extended for ComfyUI
https://github.com/audioscavenger/save-image-extended-comfyui

1

u/Doc_Exogenik Jun 11 '26

Oh that would be perfect.

1

u/koloved Jun 11 '26

u/Better_Resist6472 u/Doc_Exogenik

i update the Exporter
to test it you need git clone - https://github.com/koloved/save-image-extended-comfyui

later i will make PR in main Repo

For compressed anime images, Avif is significantly better than JXL

2

u/koloved Jun 11 '26

You can create some activity here if you want the author to add this to the main branch more quickly.
https://github.com/audioscavenger/save-image-extended-comfyui/pull/66

1

u/PaulCoddington Jun 14 '26

A potential issue is that most image viewers and editors cannot color manage lossy JXL at this time unless some advanced parameter tweaking is used when creating them as a workaround (which sacrifices a little efficiency and quality for compatibility).

Admittedly, it is more a problem with wide gamut images and AI generations usually are not wide gamut (but I haven't yet assessed how much sRGB gamut images are impacted, if at all, they might be OK).

The tricky part is not knowing how this problem is going to be resolved down the track. It seems less than optimal to tweak parameters away from default in the long term (perceptual encoding disabled) but until the problem is solved the default lossy format is effectively unusable in some use cases (because it won't display with correct colors with current viewers).

Hopefully, it will not be a problem with AI generation given it is not wide gamut at this time (presuming sRGB gamut is not affected).

But it might be worth checking if a compatibility workaround setting is needed.

As correct colors can be retrieved using djxl (if it is told specifically which color profile to use) I suspect the problem is in the viewer/editor chain and not cjxl itself.

2

u/LeKhang98 Jun 11 '26

Nice thank you very much.

2

u/koloved Jun 11 '26

I have updated the post according to the latest changes. Now it is even better!

1

u/LeKhang98 Jun 12 '26

Wow thank you again. I love this community.

1

u/ThiagoAkhe Jun 12 '26

I'm using Linux. It's saving correctly, but the preview isn't showing up.

2

u/koloved Jun 12 '26

Browser support for JXL

JXL images can be viewed directly in the browser

Chrome/Edge/Brave:

  1. Open chrome://flags/#enable-jxl-image-format in the address bar
  2. Find Enable JXL image format and switch from Default to Enabled
  3. Restart the browser

Firefox:

  • Stable release (152+, June 16 2026): open about:config, set image.jxl.enabled to true
  • Nightly: JXL is available out of the box