Jump to content

imagecreatefromjpeg - need some info


Badaboom

Recommended Posts

Hi guys

 

I need some info

Am doing an upload page for pictures, that crops images to two different sizes which works fine with small images. However some larger images it doesn't work (locally it works but not on the my server provider). I can upload the file (3481 * 2346 at 300 dpi) no problem but it actually never executes the imagecreatefromjpeg($myUploadedFile). Is there any issues with large file. I've been doing some recherches but can't seem to find any answer. The obvious idea is to have people upload photos without asking them to resize them.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/247725-imagecreatefromjpeg-need-some-info/
Share on other sites

Are you checking to make sure there are no upload errors by inspecting the value in $_FILES['your_filename']['errors']?

 

http://www.php.net/manual/en/features.file-upload.errors.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.