Discussion:
Select first page from HTTP Stream
Sascha Reuter
2010-09-16 12:22:23 UTC
Permalink
Hello everyone,

selecting the first page of an image/document works great when
reading from a local file. (e.g. $thumbnail=new
Imagick("test.pdf[0]");)

But when I try to open a remote source and selecting page 1 ([0])
from it, it fails because it takes the [0] as part of the remote
url...

For example, $thumbnail=new
Imagick("http://www.domain.com/doc.pdf[0]"); doesn't work...

Can this behaviour be overcome by some special quoating? Is it a
technical limitation? Or a bug?

Cheers,

Sascha
d***@imagemagick.org
2010-09-16 14:34:52 UTC
Permalink
Post by Sascha Reuter
Imagick("http://www.domain.com/doc.pdf[0]"); doesn't work...
It seems to work from the command line:

display 'http://www.domain.com/doc.pdf[0]'

Try it. If it does work, the problem may be in Imagick. We did not write
Imagick, not maintain it, so post the problem to IMagick project maintainers.
Loading...