[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ImageMagick on armhf



So it turns out the policy.xml files are different between the two versions and removing the restrictions on @ in /etc/ImageMagick-6/policy.xml almost works. Well, it does work to read from files, but not from stdin.

Interesting. I went back and downloaded the source tarball that the armhf deb package was built from. If I compile that, caption:@- operates as expected:

pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ ./utilities/convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@- caption_file.gif
Test
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $

After a make install to /usr/local/bin/ the previous weird no prompt behaviour returns:

pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ /usr/local/bin/convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@- caption_file.gif
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $

Digging a bit, the system version of the libs is being used. Setting LD_LIBRARY_PATH so that the libraries in /usr/local/lib/ are used and correct behaviour returns, even when using the system version of convert:

pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ export LD_LIBRARY_PATH=/usr/local/lib
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ /usr/local/bin/convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@- caption_file.gif
This is a test
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $ /usr/bin/convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@- caption_file.gif
This is a test
pi@raspberrypi:~/src/ImageMagick-6.8.9-9 $

So the issue is coming from a library. Removing /usr/local/lib/libMagickCore-6.Q16.so.2 so that the system version starts getting used again and the problem resurfaces.

Does it sound like this is most likely a bug introduced by the Debian or Raspian maintainer then?

On Sat, 21 May 2016 at 16:28 Andrew Clark <ajfclark@gmail.com> wrote:
I have been having some issues getting captions to work with imagemagick on an armhf machine. As per http://www.imagemagick.org/Usage/text/#caption_paragraphs I was trying to get the captions to read in from a file.

On my amd64 machine, the following works and prompts on stdin for the caption:

 convert -background lightblue -fill blue -pointsize 12 -size 320x caption:@-  caption_file.gif

On the armhf machine, it doesn't even wait for stdin, it just exits and caption file just contains the @- as the caption.

Package version:
amd64 8:6.8.9.9-7+b2
armhf 8:6.8.9.9-5+deb8u2

Imagemagick reports:
amd64: Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-04-08 http://www.imagemagick.org
armhf: Version: ImageMagick 6.8.9-9 Q16 arm 2016-05-16 http://www.imagemagick.org

Any ideas why the arm version doesn't appear to support reading from files with the @ notation?

Cheers,
Andrew.

Reply to: