Distribution
Mint 22.3
Package version
3.2.2+zena
Graphics hardware in use
No response
Frequency
Always
Bug description
Jpeg XL .jxl image/jxl image thumbnails do not work in Linux Mint, desktop, Nemo, etc. because xapp-jxl-thumbnailer uses a failing command.
/usr/bin/xapp-jxl-thumbnailer:
try:
with tempfile.NamedTemporaryFile(dir=XApp.get_tmp_dir(), suffix=".png") as tempf:
output = subprocess.check_output([
"djxl", "--bits_per_sample", "16", "--num_threads", "1", "--quiet", t.args.input, tempf.name
])
Steps to reproduce
- Create a JXL:
- Verify
djxl works:
- Verify command from
/usr/bin/xapp-jxl-thumbnailer fails:
djxl --bits_per_sample 16 image.jxl out16.png
# ./lib/extras/enc/encode.cc:62: JXL_FAILURE: Bit depth does not fit pixel data type
# ./lib/extras/enc/apng.cc:201: JXL_RETURN_IF_ERROR code=1: VerifyPackedImage(frame.color, ppf.info)
# Encode failed
Expected behavior
Free thumbnails
Additional information
Workaround
try:
with tempfile.NamedTemporaryFile(dir=XApp.get_tmp_dir(), suffix=".png") as tempf:
output = subprocess.check_output([
- "djxl", "--bits_per_sample", "16", "--num_threads", "1", "--quiet", t.args.input, tempf.name
+ "djxl", "--num_threads", "1", "--quiet", t.args.input, tempf.name
])
Distribution
Mint 22.3
Package version
3.2.2+zena
Graphics hardware in use
No response
Frequency
Always
Bug description
Jpeg XL .jxl
image/jxlimage thumbnails do not work in Linux Mint, desktop, Nemo, etc. becausexapp-jxl-thumbnaileruses a failing command./usr/bin/xapp-jxl-thumbnailer:Steps to reproduce
djxlworks:/usr/bin/xapp-jxl-thumbnailerfails:Expected behavior
Free thumbnails
Additional information
Workaround
try: with tempfile.NamedTemporaryFile(dir=XApp.get_tmp_dir(), suffix=".png") as tempf: output = subprocess.check_output([ - "djxl", "--bits_per_sample", "16", "--num_threads", "1", "--quiet", t.args.input, tempf.name + "djxl", "--num_threads", "1", "--quiet", t.args.input, tempf.name ])