this post was submitted on 22 Jan 2024
30 points (94.1% liked)

Programmer Humor

32484 readers
734 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 18 comments
sorted by: hot top controversial new old
[–] Max_P@lemmy.max-p.me 8 points 10 months ago* (last edited 10 months ago) (3 children)

The lengths I had to go through to open this even on my Linux desktop. Wow.

  • pictrs failed to generate the thumbnail
  • The image crashes Firefox
  • Chromium shows a broken image icon
  • Gwenview says it can't load the metadata
  • Okular says it's an unsupported image format

I had to open the darn thing in GIMP lmao

E: one install of kimageformats5 later and Gwenview/Okular can open it fine. Firefox still refuses to open it even with image.jxl.enabled set to true.

[–] prettybunnys@sh.itjust.works 4 points 10 months ago

Huh.

Memmy on my iPhone just shows it

[–] aBundleOfFerrets@sh.itjust.works 1 points 9 months ago

Firefox jxl support is restricted to nightly

[–] pivot_root@lemmy.world 1 points 10 months ago (1 children)

As an Android user, OP's image was accurate.

  • My Lemmy app couldn't open it.
  • Chromium showed the broken image icon.
  • Firefox said it was broken.
  • Firefox Beta with the about:config flag for enabling JXL still said it was broken.
  • Gallery apps couldn't open it.
  • Renaming it to .jxl still didn't help.

I gave up and grabbed a JPEG XL viewer/converter just to see it.

[–] juliebean@lemm.ee 0 points 10 months ago (1 children)

i don't want to go to all that effort. if you feel like it, could you describe it?

[–] example@reddthat.com 2 points 10 months ago

i don’t want to go to all that effort

full image

[–] ace@lemmy.ananace.dev 4 points 10 months ago (1 children)

Why is it .jpg and not .jxl? That's the registered extension for JPEG-XL.

[–] SnotFlickerman@lemmy.blahaj.zone 0 points 10 months ago (1 children)

I'm going to assume Lemmy doesn't allow native upload for jxl, but to fudge around it you can use jpg?

[–] ace@lemmy.ananace.dev 1 points 10 months ago (1 children)
[–] Octopus1348@lemy.lol 0 points 10 months ago (1 children)
[–] Pyroglyph@lemmy.world 1 points 9 months ago (1 children)

Interestingly, this JXL loads in Boost, but the one in the post doesn't. Perhaps it's because it's inside a comment?

[–] Octopus1348@lemy.lol 1 points 9 months ago* (last edited 9 months ago)

No, it's because this is actually named .jxl and not .jpg

[–] Omega_Haxors@lemmy.ml 3 points 10 months ago* (last edited 10 months ago) (1 children)

c/programmerhumor is going to be the place where people go to try and break fediverse clients, isn't it?

[–] Octopus1348@lemy.lol 1 points 10 months ago

That "people who forget the terminator" post approves

[–] BitSound@lemmy.world 1 points 10 months ago (1 children)

I couldn't view this with Firefox or Gnome. ImageMagick to the rescue, though:

convert https://pub-be81109990da4727bc7cd35aa531e6b2.r2.dev/weofihweiof.jpg meme.jpg

[–] Octopus1348@lemy.lol 1 points 10 months ago* (last edited 10 months ago)

Lmao, I tought it was some instance issue (didn't read the title).

[–] Malix@sopuli.xyz 1 points 10 months ago

worked fine on my android phone, using Connect.

worked fine on firefox & linux, the file shows as .webp to me.

Decided to investigate this a bit: when opened to new window, the image url has ?format=webp query argument, if I change that to ?format=jxl then it breaks as the server actually provides a .jxl file. At least I had to TRY to break it :P

% file c6ca4c8c-20a2-4105-8e6c-833d8c7d3e52.*
c6ca4c8c-20a2-4105-8e6c-833d8c7d3e52.jxl:  JPEG XL codestream
c6ca4c8c-20a2-4105-8e6c-833d8c7d3e52.webp: RIFF (little-endian) data, Web/P image, VP8 encoding, 623x700, Scaling: [none]x[none], YUV color, decoders should clamp
[–] Gallardo994@sh.itjust.works 1 points 10 months ago

Works in Cromite on android tho.