On Php 8.0 try to create the Image object with the class Joomla\Image like that :
$file = "C:\Users\xillibit\git\joomla-cms-39/media/kunena/avatars/users/myimage.jpg" $image = new Image($file);
The issue coming from this call in Image class line 679 :
$handle = imagecreatefromjpeg($path);
On php 8.0 it doesn't returns a ressource but an object :
object(GdImage)#876 (0) { }
No exception like on Php 7.4.13
Exception : Unable to process JPG image. in C:\Users\xillibit\git\joomla-cms-39\libraries\vendor\joomla\image\src\Image.php on line 143
Windows 10 20H2
Php 8.0.0 with gd, fileinfo and exif enabled
Joomla! 3.9.24-dev (sync from git)
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-12-01 22:27:27 |
Closed_By | ⇒ | richard67 |
Status | Closed | ⇒ | New |
Closed_Date | 2020-12-01 22:27:27 | ⇒ | |
Closed_By | richard67 | ⇒ |
Reopen this because the PR was wrong and reverted...
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-12-15 22:21:40 |
Closed_By | ⇒ | HLeithner |
Closing as having a pull request: #31554 .