Reputation: 33238
I am using gd library to generate images. The process is slow, so when I open the image during the saving process I get blank screen. How can I avoid that?
It takes ~0.4 sec to save the image, if you refresh the image in that time you will get blank screen.
The script is slow it takes 6 sec to generate image, during which you will see the old image.
Upvotes: 0
Views: 738
Reputation: 152216
To avoid "blank screen" caused by the saving process, you can save an image as a new file (for example hi_finished.png
) and after saving, rename it as hi.png
.
Upvotes: 1