开发者

copy() and ImageMagick

I'm coping external file with copy() and then resize it with ImageMagick. Will php wait until image been downloaded and only after that 开发者_如何学编程begin converting image ?

For example

copy("http://sstatic.net/stackoverflow/img/sprites.png","newfile.png");

Here I convert downloaded image exec("nice -n 19 convert -resize 500x500 ....


Yes, it will be wait for it,

But better in this way to use curl with timeout

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜