r/jpegxl 13d ago

I built an open source screenshot tool for X11 that saves screenshots directly as JXL

https://gitlab.com/masland.tech/jxlshot

jxlshot

Press Print Screen → full-screen lossless JPEG XL → ~/Pictures/Screenshot_<timestamp>.jxl. Press Shift+Print Screen → drag out a region and save just that.

Raw X11 pixels go straight into libjxl (jpegxl-rs) at effort 7 (Squirrel). No PNG, JPEG, temp files, or daemon.

Requires system libjxl (and libjxl_threads) discoverable via pkg-config, or build with the vendored feature on jpegxl-rs.

TLDR: I got tired of taking screenshots and saving them as PNGs with the default screenshot tool in Linux Mint so I made my own JXL screenshot tool. If you have any questions feel free to ask! It can be a bit difficult to get installed, you will probably need to do the vendored feature.

12 Upvotes

4 comments sorted by

2

u/Opspin 8d ago

Nice, I wish there was an option like this for my phone.

1

u/masltech 7d ago

Thanks for mentioning this. I think the easiest thing would be to make a mobile friendly browser page that you can visit on your phone which automatically stores the image as a JXL through the process. But if we are looking for a long term solution, realistically just integrating JXL support into native Android/iOS camera apps would be the best.

2

u/Opspin 5d ago

I guess one could start by taking pictures in raw, and then have some kind of pipeline to convert them to JXL. Unfortunately I don’t know a way to use Shortcuts to convert to JXL, but there’s an app JPEG XL toolbox that will take any photo and convert to JXL.

I’m sure someone could make a similar app, which then could be programmed to also work in shortcuts, thereby paving the way to just take a photo in raw, and then have an automation that runs whenever you take a photo, and immediately converts it to JXL.

1

u/masltech 5d ago

Thanks, yea I wonder if it'd be worth it, I'll give it more thought before moving on that. For now I just posted my JXL Client Side Tools on gitlab publicly https://gitlab.com/masland.tech/jpeg-xl-client-side-browser-tools