Dropped WebP In My Pictures

When I first wrote my script to process images, I generated the sizes in three formats. JPG because it’s supported everywhere, WebP because it was well supported, and AVIF because it was much smaller. That was a couple of years ago.

The other day I just happened to check Can I Use](https://caniuse.com/ “Can I Use”) and saw that support was pretty similar between AVIF and WebP now. I thought that having both was taking extra time, space, and redundancy at this point, so I dropped the WebP pictures. I will always have the JPG ones, at least for the foreseeable future. They are much larger, but they.

I tested it out on my older Pixel that hasn’t been turned on in years. As a matter of fact, the battery was dead, so I had to charge it a bit. Both Firefox and Chrome on there do not support AVIF, and it fell back to using the JPG files out of the choices, so that confirmed that it did what I wanted it to do.

It is not a perfect testing method by any means, but it is making use of what I have available. It’s not like this site is professional, and I can’t imagine it would really affect anyone. I just like to try to do things the right way to the best of my ability.

I did also manage to check it on my oldest Motorola phone, and the images did not display at all on that ancient version of Chrome. The link to the original photo does, though, and that is a passable solution to me. I highly doubt anyone uses anything that old these days on a phone. Maybe a computer.

I took a quick glance at the source and realized I had a typo on the script that generated the srcset. That makes sense. I had read when I switched to using the <picture> element that having an <img src="blah"> is required and is a fallback. Turns out I had a typo giving that file the wrong name. Of course the browser won’t load it if it doesn’t exist! I fixed that and regenerated the site, and all works as expected now.

I think a big reason I miss so many of these small typos is my brain autocorrects so much, making up for my visual. That’s at least my theory, and I am sticking with it. I have to look that up now.