Call to undefined function imagecreatefromjpeg()

Bug Summary

PHP Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg()

Steps to reproduce

Use the function imagecreatefromjpeg() in a plugin

Environment Info

MacOS Ventura 13.0.1
PHP 7.4.1 (only happens in 7.4.1)
Local 6.5.2+6204

Supporting info

Local log is empty for htis issue