lflier
June 13, 2021, 2:06pm
1
When attempting to load an image file into Imagick (e.g. new Imagick(‘pathname.jpg’) I get the following error:
“Warning: Imagick::__construct(): stream does not support seeking…”
I’m running:
MacOS 10.15.7
Local 5.10.5+5403
PHP 7.4.1
It doesn’t seem to matter whether the file type is jpg or png, nor does it matter whether the file is stored inside the site itself or remotely.
The error does not occur on my production server, running PHP 7.4.3.
There is some discussion here about this error coming up on certain builds of PHP 7.4.1.
Is anyone else having this problem?
system
Closed
September 11, 2021, 2:06pm
2
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
I know that there was a recent regression with the PHP lightning services around the Image Magick extension:
Thumbnails are not being generated for uploaded PDFs. Attempting to directly create the thumbnail via imagick throws an error.
Fatal error: Uncaught ImagickException: PostscriptDelegateFailed [ghostscript library 9.53] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 ‘-sDEVICE=bmpsep8’ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 ‘-r10x10’ -dFirstPage=1 -dLastPage=1 ‘-sOutputFile=/var/tmp/magick-bCWyxRbUkTq3A8KBgX3pim2c63Xaqn0i%d’ ‘-f/var/tmp/magi…
That being said, the error you are seeing seems to indicate that Image Magick is there, it’s just missing features.
In that StackOverflow thread, one of the answers mentions the underlying “why”
Seeking (offset) is not supported with remote files. Attempting to seek on non-local files may work with small offsets, but this is unpredictable because it works on the buffered stream.
The reason I bring it up is that maybe one of the images that’s being worked on is “remote” only within Local. A couple of things come to mind:
Is this happening over Live Links or a direct connection to the site?
Are you able to inspect the actual path to the image? Maybe it is “remote” in the sense that it’s on a different partition?