The behaviour of these functions is affected by settings in php.ini.
Here's a short explanation of the configuration directives.
Ignore warnings created by jpeg2wbmp() and imagecreatefromjpeg()
See also the exif configuration directives.
Image functions are very memory intensive. Be sure to set memory_limit high enough.