Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2022-01-24 06:42:51

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

Re: php 8.1

I now have a live server with PHP 8.1.1 installed.
gd: version 2.3.3 with AVIF support
also available: imagick, module version 3.6.0 – 2021-12-04 (note: no .avif support I think).

PHPinfo() available on demand.

No new issues detected so far.
Uploading an .avif image works fine; no thumbnail available. And 0 still rules – not unexpected.

PS – A bit of puzzling trivia. Using the code posted above for the image size test returns a warning (Warning: getimagesize(images/41.avif): Failed to open stream: No such file or directory while parsing form default on page archive) The image is there though.

<txp:php>
dmp(imagetypes());
dmp(getimagesize('images/41.avif'));
</txp:php>

using the full path (https://domain.com/images/41.avif) did work.


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

Offline

#62 2022-01-24 09:05:42

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,263
GitHub

Re: php 8.1

phiw13 wrote #332474:

imagick, module version 3.6.0 – 2021-12-04 (note: no .avif support I think).

imagick is the 3rd-party extension connecting PHP + ImageMagick, and ImageMagick is the library (i.e. it’s the thing that has AVIF support). imagick talks to ImageMagick via its API. As I understand it, Textpattern doesn’t currently use ImageMagick (though it was proposed and has been subsumed so it’s on the cards).

Last edited by gaekwad (2022-01-24 09:05:53)

Offline

#63 2022-01-24 09:17:16

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

Re: php 8.1

Yes, given its configuration, it means that avif image processing through ImageMagick would not be possible. (that is why I noted it, to point out that full avif support is still remote)

BTW – Current Textpattern (4.8.*) does not use ImageMagick, but the TXP-4.9-dev image branch would (if available I suppose), although currently that branch complains if not available.


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

Offline

#64 2022-02-03 02:26:28

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

Re: php 8.1

For reference

  • Localhost with PHP 8.1.2 + ImageMagick – AVIF is supported. ImageMagick: version 7.1.0-22 (2022-01-29), imagick extension version 3.7.0
  • Live server with PHP 8.1.1 + ImageMagick – AVIF is not supported. ImageMagick: version 6.9.12-31 (2021-12-04), imagick extension version 3.6.0

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

Offline

#65 2022-02-03 10:12:44

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,263
GitHub

Re: php 8.1

phiw13 wrote #332614:

  • Localhost with PHP 8.1.2 + ImageMagick – AVIF is supported. ImageMagick: version 7.1.0-22 (2022-01-29), imagick extension version 3.7.0
  • Live server with PHP 8.1.1 + ImageMagick – AVIF is not supported. ImageMagick: version 6.9.12-31 (2021-12-04), imagick extension version 3.6.0

ImageMagick added AVIF voodoo in version 7.0.25, if memory serves, so that makes sense.

Offline

Board footer

Powered by FluxBB