techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.7K
active users

#webp

2 posts2 participants0 posts today
Replied in thread

@ianthetechie

Oh, I do plenty of the pre-processing. Peruse the #LossyPNG hashtag, it's probably 100% me.

But Amiga HAM would be a fun hobby-horse.

I do use #WebP for the fediverse now, as it's supported by #GoToSocial natively, but I think #AVIF is actually considerably better.

Try a few test images on your own and see how it fares. I usually do something like:

convert image.png -quality 20 image.webp

and then attempt to create an image of nearly the same size in JPEG and AVIF for comparison.

convert image.png -quality {trial-and-error} image.avif
convert image.png -quality {trial-and-error} image.jpeg

The AVIF is almost always better looking, and the JPEG is almost always a total mosaic. ;)

https://rldane.space/the-case-for-avif.html

P.S., yes, you can name JPEGs .jpeg. It's not 1993 anymore. :P

rldane.spaceThe Case for AVIF

I keep seeing memes about people furious with #WEBP, but it's clear that it's a pretty good format that just needs better adoption.

I recently hit an old #BOFH excuse generator, and one of the listed excuses (from the early 90s) was "50% of the manual is in .pdf readme files". There was a time when #PDF was a weird new format people were trying to push on everything, and lack of tooling made us resent it!

Why do some WebP Images appear upside down?

shkspr.mobi/blog/2016/06/why-d

A few years ago, Google introduced a new image format to the world - WebP. It purports to be a superior image format for the web but, like all new toys, it takes a little while for the bugs to be ironed out.

I found a curious case where some WebP images are rendered upside down!

On the left is Opera for Android, centre is Chrome for Android, and on the right is Firefox for Android. Firefox is the only one which renders the lower image correctly. The upper image is also WebP.

This also seems to affect iOS.

Terence Eden is on Mastodon

@edent

Replying to @paulglavin@paulglavin so I'm not seeing things? That's good to know. Any chance of a screenshot? ❤️ 0💬 0🔁 021:42 - Sat 04 June 2016

Paul Glavin

@paulglavin

Replying to @edent@edent I can't guarantee you're not seeing things! pic.x.com/o48z3ywmlq

❤️ 0💬 1🔁 021:43 - Sat 04 June 2016

The original article has since replaced the WebP images with standard JPGs - but I managed to grab one of the images before they were removed.

(Photo via David Wilfert)

I'm not sure if my Android phone has somehow mangled the file when it was saved, or whether the image was like that to start with.

There are, I suppose, three possibilities.

  1. Both iOS and Android have a bug with rendering some WebP images.
  2. Buzzfeed's CDN has a bug which rotates some WebPs - and doesn't serve them to Firefox due to lack of support.
  3. A collective hallucination.

For now, I'm tempted to put the blame on a buggy image conversion - that seems to be the simplest explanation. Either way, a salutary reminder to check your content in several different browsers.

Terence Eden’s Blog · Why do some WebP Images appear upside down?
More from Terence Eden

I had a moment of inspiration and created #ggg take a look (still #experimental #foss software)

ggg: #guile #scheme #glyph #generator

codeberg.org/jjba23/ggg

Through #svg generation from #lisp we leverage a (wip) #dsl and apply some #math knowledge to build pixel perfect project #markdown / #org badges.

It also scripts #imagemagick to export to #png or #webp .

You can then use the svgs in your #codeberg (or #github) repository #readme for example.

I provide a #guix manifest in the repo

Replied in thread

@adamsdesk

YES!!! #AVIF #FTW!!!

Just FYI, nsxiv, imv, and swayimg all support AVIF as well, although imv did oddly have a glitch with one of the images I tested it with. I'd never seen that happen before.

According to some people I've spoken with, JPEG is still king for high-fidelity images and minimizing loss upon re-compression, but AVIF just totally whips the llama's posterior when it comes to relatively high fidelity at crazy low file sizes (high compression).

AVIF is often noticeably better quality than #WebP at the same (low) file size and resolution, and parsecs beyond what JPEG can do with high compression factors.

If only the fediverse supported it!!! :(

We barely have WebP support (mostly on #GtS, maybe #snac (haven't tried it)), not on #Mastodon.

For today's #DailyDoodle, I traced and sketched the cover art for the #PhilipGlass album #GlassWorks while listening to the first track on repeat.

It's always been a favorite of mine, and I love how ordered his music is. I think you either love his stuff or utterly hate it, either completely enjoy listening to it, or NOPE right out of it after about a minute.

Here is the track, via invidious: https://inv.nadeko.net/watch?v=_2vRbNehGB0

I traced the basic outline of the image via the line tool (rather, the line mode of the pen tool) in #Xournal++, and then freestyled the shading with the album art to the side, rather than traced.

For tracing, I just put the Xournal++ window above the swayimg window, and made it mostly transparent.

I think I will start using this account for my daily doodles, as it'd be nice to have them gathered together in a separate space from my usual account (@(@rl_dane@polymaths.social), and I don't take that many photos, anyway.

It's very interesting how much #entropy there is in hand-drawn sketches. Even when I was trying to save space by converting the image to monochrome (which I didn't do with this one), the file sizes for the sketches were still pretty large, and even attempting to convert to #JPEG or #WebP didn't save much space over the monochrome PNG unless I really cranked down the compression factor and turned it into a blurry mess.

It's also fascinating that the compressed XML source for the image is about the same size as the PNG. ^__^ (204KiB vs 158KiB)