pdf-php icon indicating copy to clipboard operation
pdf-php copied to clipboard

PHP8.2 - addPngFromFile() stops working

Open techtheatre opened this issue 2 years ago • 2 comments

My web host has just upgraded to php 8.2 and everything still works except my images have disappeared. I use the addPngFromFile() function and now it is just blank where the images were. Is anyone still here using this amazing PDF software who can help?

techtheatre avatar Jun 15 '22 04:06 techtheatre

I should have been more specific. I use addPngFromFile() however in troubleshooting have also found that addJpgFromFile() does not work either. I have verified that my image path is still correct (though none of the code on my project has been touched in over a year and the only change was the server PHP version upgrade).

techtheatre avatar Jun 15 '22 08:06 techtheatre

My web host is still on PHP 5.6 and I am finding that the first png or jpeg works in my documents, but the subsequent ones have disappeared, so maybe it's not a PHP issue?

RPort71 avatar Aug 09 '22 04:08 RPort71

fixed in #164. will be in the next release

oradwell avatar Nov 15 '22 14:11 oradwell

Fix released in 0.12.64

oradwell avatar Nov 15 '22 22:11 oradwell