error/url.c/ReadURLImage Timeout
Posted: 2013-09-03T02:55:13-07:00
Hi
I have a script which takes a while (1-3 mins depending on data) to create a very large image and over the past few weeks we have been experiencing timeout problems intermittently.
We then get back the following error
If we run http://xxx/run/largeimage.php?a=123 in a web browser the image will return eventually, it just takes a while (which we are fine with - it is not and urgent job, it is just run in the background)
We are looking for a way to increase the timeout limit, either by command or by editing the source files and recompiling ImageMagick.
Any help is appreciated.
I have a script which takes a while (1-3 mins depending on data) to create a very large image and over the past few weeks we have been experiencing timeout problems intermittently.
Code: Select all
convert -verbose /canvas/2100x2100.jpg \( [b]http://xxx/run/largeimage.php?a=123[/b] -gravity center -geometry +0+0 \) -composite \( http://xxx/run/textimage.php?a=123&line=1 -gravity center -geometry +0-801 \) -composite \( http://xxx/run/textimage.php?a=11111&line=2 -gravity center -geometry +0+700 \) -composite \( images/outer_2100.png -gravity center \) -composite final.jpg 2>&1
Code: Select all
Array
(
[0] => canvas/2100x2100.jpg JPEG 2100x2100 2100x2100+0+0 8-bit sRGB 26.4KB 0.060u 0:00.060
[1] => /tmp/magick-9966FetPaXih3MwH PNG 1352x399 1352x399+0+0 16-bit sRGB 284KB 0.020u 0:00.019
[2] => http://xxx/run/textimage.php?a=123&line=1=>textimage.php?a=123&line=1 PNG 1352x399 1352x399+0+0 16-bit sRGB 284KB 0.000u 0:00.000
[3] => /tmp/magick-99663fc5aV7iZfQx PNG 1666x577 1666x577+0+0 16-bit sRGB 361KB 0.040u 0:00.039
[4] => http://xxx/run/textimage.php?a=123&line=2=>textimage.php?a=123&line=2 PNG 1666x577 1666x577+0+0 16-bit sRGB 361KB 0.000u 0:00.000
[5] => images/outer_2100.png PNG 2100x2100 2100x2100+0+0 8-bit sRGB 193KB 0.130u 0:00.119
[6] => convert: no decode delegate for this image format `/tmp/magick-9966sNodj2e0HoyX' @ error/constitute.c/ReadImage/552.
[7] => convert: no data returned `[b]http://xxx/run/largeimage.php?a=123[/b]' @ error/url.c/ReadURLImage/246.
[8] => convert: no images defined `final.jpg' @ error/convert.c/ConvertImageCommand/3106.
)
We are looking for a way to increase the timeout limit, either by command or by editing the source files and recompiling ImageMagick.
Any help is appreciated.