User tests: Successful: Unsuccessful:
remove no longer needed imagedestroy()
In the migration of various extensions from resources to objects, a number of functions to close or free the resources became no-ops
imagedestroy() since the ext/gd migration in PHP 8.0
https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_imagedestroy
Image::destroy() can be deprecated in future Joomla version (eg. 6.1)
Create scheduled task Image Size Check with manual execution and limit of eg. 50px
Run task
Task status: Terminated
deprecation message (possibly further)

Task status: Completed
no deprecation message about imagedestroy()
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries Unit Tests |
| Labels |
Added:
Unit/System Tests
PR-5.4-dev
|
||
| Labels |
Added:
PHP 8.x
bug
|
||
| Status | Pending | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-10-17 11:14:24 |
| Closed_By | ⇒ | muhme |
Thank you @heelc29 for your contribution. Thank you @QuyTon and @HLeithner for your code reviews.
✅ Tested with JBT php8.5-rc
Function imagedestroy() is deprecatedand task failed withJSON.parse: unexpected character at line 1 column 1 of the JSON dataFunction imagedestroy() is deprecated