?
avatar xillibit
xillibit
1 Dec 2020

Steps to reproduce the issue

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) { }

Expected result

No exception like on Php 7.4.13

Actual result

Exception : Unable to process JPG image. in C:\Users\xillibit\git\joomla-cms-39\libraries\vendor\joomla\image\src\Image.php on line 143

System information (as much as possible)

Windows 10 20H2
Php 8.0.0 with gd, fileinfo and exif enabled
Joomla! 3.9.24-dev (sync from git)

Additional comments

avatar xillibit xillibit - open - 1 Dec 2020
avatar joomla-cms-bot joomla-cms-bot - change - 1 Dec 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Dec 2020
avatar xillibit xillibit - change - 1 Dec 2020
The description was changed
avatar xillibit xillibit - edited - 1 Dec 2020
avatar xillibit xillibit - change - 1 Dec 2020
The description was changed
avatar xillibit xillibit - edited - 1 Dec 2020
avatar xillibit xillibit - change - 1 Dec 2020
The description was changed
avatar xillibit xillibit - edited - 1 Dec 2020
avatar xillibit xillibit - change - 1 Dec 2020
The description was changed
avatar xillibit xillibit - edited - 1 Dec 2020
avatar richard67 richard67 - change - 1 Dec 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-12-01 22:27:27
Closed_By richard67
avatar richard67 richard67 - close - 1 Dec 2020
avatar richard67
richard67 - comment - 1 Dec 2020

Closing as having a pull request: #31554 .

avatar HLeithner HLeithner - change - 15 Dec 2020
Status Closed New
Closed_Date 2020-12-01 22:27:27
Closed_By richard67
avatar HLeithner HLeithner - reopen - 15 Dec 2020
avatar HLeithner
HLeithner - comment - 15 Dec 2020

Reopen this because the PR was wrong and reverted...

avatar HLeithner HLeithner - change - 15 Dec 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-12-15 22:21:40
Closed_By HLeithner
avatar HLeithner HLeithner - close - 15 Dec 2020
avatar HLeithner
HLeithner - comment - 15 Dec 2020

closed we have a new PR #31663

Add a Comment

Login with GitHub to post a comment