Page 1 of 1

imagejpeg() not completing images

Posted: Mon Nov 03, 2008 2:34 pm
by mmm3228
I am trying to create an image for a user then email that image, however only some of these images are completed.
This is what the image should look like:
ImageImage

However, this is was some of the images will come out like:
ImageImage

I am creating a single image, emailing it, then creating another image and emailing it and so on overwriting the previous image each time. Currently I am only doing it with 15 images, but it needs to be scaled up to about 200.

Anyone have any ideas about what might be going on? Any help at all would be appreciated, im pretty new to php

Re: imagejpeg() not completing images

Posted: Mon Nov 03, 2008 4:38 pm
by infolock
i assume you're dynamically generating this with something like GD or ImageMagik.

Without any code it's kinda hard to determine what's going on.

With the code, (and I'm sure it's a lot), it might take some time to debug, but it's possible there is an issue here. Seems like the buffer is getting crapped out of the image you're generating.

Re: imagejpeg() not completing images

Posted: Mon Nov 03, 2008 4:58 pm
by mmm3228
Yea, I am using GD to create the images. Ive found a work around by creating separate files in one loop and keeping track of file names in an array then emailing them in another loop and then deleting the file. This seems to work fine, its just prob not the most efficient piece of code.

Re: imagejpeg() not completing images

Posted: Mon Nov 03, 2008 5:04 pm
by infolock
Understandable. Glad you figured it out.