Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#286 Yesterday 07:10:35

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,643
Website

Re: Automatic thumbnails for Textpattern

Bloke wrote #342342:

Since we can’t really have 4.9.1 solely with bug fixes and minor changes, how about one feature I didn’t have time to squeeze into 4.9.0? The ability to alter the output format of automatic thumbnails.

[…]

Out of curiosity, I played a little with this. As far as I can tell, it works as advertised, a .jpg is converted to an .avif file. Resulting file is cached and when opening in another browser, the image is I think fetched as the expected type from disk when the page is fetched by another browser without delay ( I see 200 status).

Surprising and a maybe borderline confusing:

  1. (as mentioned) the file extension displayed when view as standalone image is the original. Firefox gives the (generated) file type in the tab title. Brave (Chromium) and Safari only display file name and size. Not much file type info to get from that.
  2. (and as mentioned) on the server file-system the image is stored with the original extension.
  3. when saving the image locally,
    • Firefox saves the image with the generated extension (.avif)
    • Both Brave and Safari save the file with the original extension (.jpg). The local file system (Finder) “sees” a JPEG image. The info box in Preview.app reflects the avif file type. Acorn opens the file according to the extension (as jpg, thus).

Test page: emps.l-c-n.com/playground/experiment-converting-an-image-on-the-fly. The large size thumbnail should be cached on the server. Page is up for a week or so.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB