Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: php 8.1
Offline
Re: php 8.1
Offline
Offline
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
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
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
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
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
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
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
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
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