Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2021-12-16 12:21:13

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

Re: php 8.1

phiw13 wrote #332247:

Call of Cthulhu ?

Close enough!

Last edited by gaekwad (2021-12-16 13:07:51)

Offline

#50 2021-12-16 15:08:44

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: php 8.1

gaekwad wrote #332248:

Close enough!

Amazing reading!

It looks like things are still moving.

Offline

#51 2021-12-16 16:33:22

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

Re: php 8.1

etc wrote #332250:

It looks like things are still moving.

I expect it will land in 8.1.2 or 8.1.3. 8.1.1 arrived yesterday, and the PHP crew are really good at their 4-week patch release schedule.

Offline

#52 2021-12-17 07:53:09

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

Re: php 8.1

etc wrote #332245:

Interesting. Could you save some .avif image in your images (or other) folder and test this in some article, please:

<txp:php>...

The image displays the correct size, caption and alt are correct

  • image_info type=caption: an old ume (plum) tree in a community park
  • image_info type=alt: ume
  • image_info type=w: 0
  • image_info type=h:0
array (
  0 => 0,
  1 => 0,
  2 => 19,
  3 => 'width="0" height="0"',
  'mime' => 'image/avif',
)

I had forgotten that <txp:image /> does not include the image sizes in the generated HTML and only check visually, when checking yesterday.

–^–

In other news, for the next 10 days ~ 2 weeks you’ll have to play alone in the sandbox as I will be spending time in and out of a hospital to try to figure out what is not going well with my cario-vascular system.

Have fun

ph.


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

Offline

#53 2021-12-17 07:55:34

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

Re: php 8.1

etc wrote #332250:

It looks like things are still moving.

oh, my current results are what might be expected at present ?

. getimagesize() now reports the actual image dimensions, bits and channels of AVIF images. Previously, the dimensions have been reported as 0×0, and bits and channels have not been reported at all.

interesting…


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

Offline

#54 2021-12-17 11:18:02

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: php 8.1

phiw13 wrote #332254:

The image displays the correct size…

  • image_info type=w: 0
  • image_info type=h:0

That’s a bit contradictory. The image is well uploaded and displayed, but its dimensions are not detected by txp, I guess. That’s exactly what they are working on.

In other news, for the next 10 days ~ 2 weeks you’ll have to play alone in the sandbox as I will be spending time in and out of a hospital to try to figure out what is not going well with my cario-vascular system.

Raise high the flag and good luck!

Offline

#55 2021-12-17 11:25:37

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

Re: php 8.1

phiw13 wrote #332254:

In other news, for the next 10 days ~ 2 weeks you’ll have to play alone in the sandbox as I will be spending time in and out of a hospital to try to figure out what is not going well with my cario-vascular system.

Very best wishes to you, phiw13!

Offline

#56 2021-12-18 02:40:31

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

Re: php 8.1

etc wrote #332256:

That’s a bit contradictory. The image is well uploaded and displayed, but its dimensions are not detected by txp, I guess. That’s exactly what they are working on.

Yes I saw that. Reading the smashed entrails of a venomous red-back spider, I see we’ll have full AVIF support in PHP8.2 just in time for a first release of Textpattern 4.9 with a revamp image management interface :-)

Raise high the flag and good luck!

Thank you.

Last edited by phiw13 (2021-12-18 02:40:47)


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

Offline

#57 2022-01-21 07:04:13

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

Re: php 8.1

My local Homebrew PHP install has been updated to v 8.1.2.

So far no other issues to reports. The thumbnail images for the avif format are still nowhere to be seen. Trying to generate one from the image Edit panel: Error: Thumbnail 2 not saved.

Wasn’t it there as a (PHP source code) patch ready to go ? [ see here ] Or is it still coming in a next version?


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

Offline

#58 2022-01-21 09:04:09

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: php 8.1

phiw13 wrote #332461:

Wasn’t it there as a (PHP source code) patch ready to go ? [ see here ] Or is it still coming in a next version?

You might want to retest this, to see if avif image dimensions are correctly detected now. Image creation is yet another story though, it probably depends on external libraries rather than on php core itself.

Offline

#59 2022-01-21 09:11:58

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

Re: php 8.1

etc wrote #332462:

You might want to retest this, to see if avif image dimensions are correctly detected now. Image creation is yet another story though, it probably depends on external libraries rather than on php core itself.

unfortunately, same story: 0 rules!


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

Offline

#60 2022-01-21 09:32:39

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: php 8.1

phiw13 wrote #332463:

unfortunately, same story: 0 rules!

Sad, but fair, there is no mention of GD in release notes.

Offline

Board footer

Powered by FluxBB