this post was submitted on 11 Oct 2023
232 points (96.0% liked)

Ask Lemmy

26875 readers
1925 users here now

A Fediverse community for open-ended, thought provoking questions

Please don't post about US Politics. If you need to do this, try [email protected]


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 1 year ago
MODERATORS
 

is it a formatting step that an image goes through when uploaded? I'm tired of converting image after image back into jpg, so if there's like a step I can take to avoid it being a webp, it would help to know

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 17 points 1 year ago (17 children)

Isn't jpg more efficient for pictures, whereas png is better for graphics type elements with defined colors and edges?

[–] [email protected] 41 points 1 year ago (6 children)

Jpg is lossy and throws away information every time it is used, that’s why you get the “deep fried effect” when you re-encode something repeatedly. PNG is lossless so it’s a perfect replica of whatever image you encode with it. It does take up more space however.

[–] [email protected] 15 points 1 year ago* (last edited 1 year ago) (3 children)

Minor niggle: the ‘deep fried effect’ isn’t because jpg throws away information every time, it’s because the compression algorithm averages pixel boundaries, and that averaging multiplies with each compression pass.

It can actually bloat the size of the file by adding information – adding data to previously null pixels, whereas png would keep them clean.

e: it achieves this through pixel averaging (fuzzing), which is why you’ll see grey artefacts bleeding into the pixels around line art. This is magnified with each compression.

[–] [email protected] 18 points 1 year ago (2 children)

You’re conflating “data” with “information”.

Repeated re-encoding loses information. “The compression algorithm averages pixel boundaries” is a perfect example of losing information.
That it sometimes results in more bits of data is a separate phenomenon altogether.

[–] [email protected] 9 points 1 year ago

Thank you I learned something today.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

That’s fair. Thank you for making that distinction.

e: It’s still bad for the user, though.

load more comments (2 replies)
load more comments (12 replies)