AO image optimization: transparent .png to avif issue

if “Load WebP or AVIF in supported browsers?” is on, .png files with transparency will loose that transparency in browsers that support AVIF due to a recent technical change in Shortpixel’s AVIF toolchain.

Shortpixel is looking at alternative solutions, but until then as a workaround you can either:

  • add .png to Autoptimize’s lazyload exclusion field
  • or to use below code snippet to disable AVIF images;

add_filter( 'autoptimize_filter_imgopt_do_avif', '__return_false');

Music from Our Tube: Robert Wyatt’s cover of “At Last I Am Free”

Last Sunday-evening while making the beds, listening to Charlotte Adigéry’s very enjoyable radioshow on Stubru, I heard “At last I Am Free”. Turns out Robert Wyatt actually covered this pretty uncharacteristic Chic-song, but I prefer his version:

Robert Wyatt "At Last I Am Free"
Watch this video on YouTube.

Gelezen: Max, Mischa & het Tet-offensief van Johan Harstad

Wat een boek …

Coming of age, de buitenwijken, New York, Noorwegen. Muziek, toneel, schilderkunst. De oorlog in Vietnam de oorlog die Coppola’s film over de oorlog in Vietnam was. Communisme, kapitalisme. Eenzaamheid, vervreemding, maar ook liefde.

1230 pagina’s en ik zou direct opnieuw beginnen (en ik ben stukken aan het herlezen), ondanks de soms zwaar op de hand liggende beschouwingen over toneel of schilderkunst (maar vooral de stukken over toneel zijn nu zoveel relevanter).

Wat een boek!

Voor de muziekfreaks; een YouTube playlist :

Playlist: Max, Micha & het Tet-Offensief Soundtrack
Watch this playlist on YouTube

The song of 2020: I know the end – Phoebe Bridgers

Phoebe Bridgers was everywhere this year; Better Oblivion Community Center with Conor Oberst, her cover of The Goo Goo Doll’s “Iris” with Maggie Rogers to celebrate Trump’s defeat, but most importantly her solo album with this impressive multi-faceted and deeply touching “I know the end”.

Phoebe Bridgers - I Know the End (Official Video)
Watch this video on YouTube.

About that new autoptimize_filter_imgopt_lazyload_from_nth filter

Some people asked for documentation/ information on that new autoptimize_filter_imgopt_lazyload_from_nth filter which allows one to tell AO not to optimize the first X images found in the HTML, so here is an example code snippet that sees AO not lazyload the first 5 images:

add_filter( 'autoptimize_filter_imgopt_lazyload_from_nth', function(){ return 5; } );

Update: as from AO 2.8.2 this will also be an option on the settings page, see screenshot :)