sccottt Posted July 27, 2007 Share Posted July 27, 2007 i've got this code (in the midst of a bunch of other code): $file = $_POST['file']; $trgt_w = $_POST['w']; $trgt_h = $_POST['h']; list($w, $h) = getimagesize($file); echo "w " . $w . ", h " . $h; $src = imagecreatefromjpeg($file); echo " imagecreatefromjpeg"; $thm = imagecreatetruecolor($trgt_w, $trgt_h); echo " imagecreatetruecolor"; I noticed that my code wasn't always executing all the way through. So, I put in those echo lines, and noticed that for SOME images, the "imagecreatetruecolor" echo line never gets executed. It seems that for larger, say desktop background sized, images, the code quits before getting to that echo line... as it never returns that echo. For smaller images, the code works through that line and perfectly through the rest of the code. I don't know a ton of PHP, so I am at an impass here. Anything strike anyone as to why this code wouldn't work for larger images? It needs to work for larger images. Am I missing something else? Quote Link to comment Share on other sites More sharing options...
sccottt Posted July 27, 2007 Author Share Posted July 27, 2007 i don't know if anyone was planning on helping me.... but i figured it out on my own. so, nevermind. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.