imagecreatefromjpegとimagecreatefrompngの代わりになる関数ってなんかありますか?

なんかサイズが大きいとエラーもはかずにスクリプトがとまっちまう。