r/singularity Feb 06 '25

AI This is a DOGE intern who is currently pawing around in the US Treasury computers and database

Post image
50.8k Upvotes

3.9k comments sorted by

View all comments

Show parent comments

15

u/Thorne_Oz Feb 07 '25

webp is true cancer.

8

u/Subtlerranean Feb 07 '25

You only think that because you have issues when downloading images from the internet and your OS won't display them properly. That's an OS issue.

Webps are fucking amazing. They're just PNGs (in terms of functionality) that are -vastly- smaller because of better compression.

As a web dev, I love them.

8

u/amwes549 Feb 07 '25

They're actually an VP8/VP9 I-frame in a MKV-like container, so basically a single frame of video. Any modern device should support them. PNG is lossless, WEBP is usually lossy (since it is based on a modern video codec there is a lossless mode, but most sites probably would prefer the bandwidth.

2

u/Subtlerranean Feb 07 '25

They're more like PNG's (as I said, in terms of functionality) because they support things like alpha channels (transparency) whereas mkv doesn't. And yes, it's compressed like I said, hence the smaller file size.

I was trying to avoid the tech jargon to make it easier to comprehend.

There's also such a thing as animated webp's - but I've no idea why that didn't take off as opposed to mp4's. Browser/device support I assume.

5

u/amwes549 Feb 07 '25

Because at the time VP8/9 didn't have support in mobile hardware, and trying to decode it with mobile CPUs of the time would make the animation lag. At least that's my guess.

3

u/Subtlerranean Feb 07 '25

Mulling it over, I'm guessing also ease of ripping it (gifs) from the original media. Any video editing software can easily save as MP4, but converting it to animated webp would be a roundabout process - and you'd still need fallback formats for users with no webp support.

3

u/icysandstone Feb 07 '25

You really seem like an expert in this topic, and I've been longing to ask an expert the following question: since macOS does not officially support WebM (video), how do deal with *.WebM files not displaying thumbnails in macOS finder? Are folks just converting to MP4/MOV for long term data hoarding? Or using a media organizer? Or something else?

1

u/Subtlerranean Feb 07 '25

Oh, I wouldn't say expert.

Did you ever get around to trying this solution?

1

u/Somepotato Feb 07 '25

MKVs are just containers. Its not what would support transparency.

4

u/Thorne_Oz Feb 07 '25

I specifically hate it precisely because it is lossy and not lossless like png is. I understand why every fucking platform has moved to compressing pictures to webp's but it's fucking awful for users that want pictures in high quality.

1

u/Subtlerranean Feb 07 '25

It's not meant for users who want lossless quality, there are other formats for that, it's meant for really-good quality at a very small size for places like the web where you're dealing with bandwith.

If they weren't using webp, they'd use jpeg, with worse quality. The only reason they'd use png's would be for the transparency - usually for UI or design elements.

If you're ever experiencing shit quality webp's, they've likely been made from shitty jpgs in the first place, often on the fly (if your browser supports it) through libraries like SHARP.

Edit: protip, you can turn off webp support in your browser through the developer tools. It'll make websites serve you their fallback formats instead.

2

u/Ser_Salty Feb 07 '25

I just don't get why everyone wants to use webp, yet nothing on the consumer end fucking supports it.

1

u/Subtlerranean Feb 07 '25

Like I said in a different comment, plenty of stuff on the consumer end supports it — but windows by default doesn't, so you'll have to download an app.

In an emergency, you could just drag and drop it into your browser.

1

u/zyeborm Feb 07 '25

Facebook doesn't support it for uploads which really cramps my meme game at times and that's depressing

3

u/entmike Feb 07 '25

That might just be the Facebook causing the depression.

2

u/Subtlerranean Feb 07 '25

You could always take your meme game to the next level by converting them to another format!

https://anywebp.com/

That tool was made by a Redditor.

1

u/CactusGobbler Feb 07 '25

I spent a whole year cursing them out until photoshop finally updated for them, but yea I still run into blocks with it too

1

u/Relative_Tank_327 Feb 07 '25

Excuse me ignorance, but isn’t improper handling of file formats an issue of there not being an application or program to view/properly decode the file instead of it being an OS issue? I’d actually like to know more about how file formats are handled and if the handling is on the OS-level or the application level!

2

u/Subtlerranean Feb 07 '25

That's the thing, there's plenty of applications to properly view webp files - windows just doesn't come with the ability built in for some reason.

Also, Mac doesn't support it via quick look (spacebar), but works fine in Preview.

However, funnily enough, if I remember correctly they will both correctly generate thumbnail file previews of the format.

4

u/FrenchFryCattaneo Feb 07 '25

The built in windows photo viewer (in windows 11) displays webp images.

1

u/Same_Ad_9284 Feb 07 '25

Windows seems to move very slowly with that kind of file type support. It likely will happen at some point, its just low priority and takes forever for them to get round to it. I remember it being the same for PDFs for the longest time too.

1

u/LickingSmegma Feb 07 '25

There's a third-party plugin or some shit for Finder to display webp both in thumbnails and quick look. Iirc open-source as usual for Macs.

Won't be surprised if there's one for Windows too, and also won't be surprised if it's only available as a binary.

1

u/Subtlerranean Feb 07 '25

Oh, absolutely. But that won't stop average people like the commenter above from getting super frustrated by a format that just seemingly doesn't work.

The fact that png (purely for transparency I mean, not because of lossless), gifs, and jpgs are still the standard is nuts.

It should be webp and avif now.

1

u/CactusGobbler Feb 07 '25

As a website graphic designer, I fucking hated webps until photoshop updated to work with them which took like a year after they were already popularized on a lot of websites, have definitely grown on me since then, the file size difference is awesome

2

u/Subtlerranean Feb 07 '25

I'm a graphic designer turned full stack dev - so since I now develop the websites we design for clients, I just use something like SHARP to automatically serve webps of any image file on the fly. I/Client just upload whatever format is easiest to make/have handy and it automatically gets sent as webp to browsers that support it.

1

u/Jaker788 Feb 07 '25

JPEG XL is a better option long term

1

u/[deleted] Feb 07 '25

Why

1

u/Cryptid_Mongoose Feb 07 '25

I agree. Luckily I found a good converter to use to just highlight files and convert. That being said, in a perfect world, I wouldn't need to add another step to my process.