开发者

copy() and ImageMagick

开发者 https://www.devze.com 2023-02-17 02:28 出处:网络
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 ?

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

精彩评论

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