Page 2 of 2
Re: ImageMagick on armhf fails to read labels or captions from file
Posted: 2016-05-22T20:55:26-07:00
by ajfclark
fmw42 wrote:This is just telling you where your policy.xml file reside, not what is in it. What do you get from
cat /etc/ImageMagick-6/policy.xml
It was copied from one machine to the other via scp and they both have the same md5sum so they are identical.
The only non comment lines in the policy map is:
Code: Select all
<policymap>
<policy domain="cache" name="shared-secret" value="passphrase"/>
</policymap>
fmw42 wrote:And did you remove the policy.xml file you created at ~/.config/ImageMagick/policy.xml?
Yes.
fmw42 wrote:Do both systems work with the command from a text file, e.g. using @filename.txt rather than from a pipe to standard in?
Yes.
fmw42 wrote:If so, then snibgo may be correct. It would then be a system issue, not Imagemagick.
I guess so. I wonder what's different in the arm side of things.
Re: ImageMagick on armhf fails to read labels or captions from file
Posted: 2016-05-22T21:22:52-07:00
by fmw42
Fred: in XML, <!-- ... --> denote comments, which should be ignored.
Yes, my mistake. I have corrected my earlier post. I hope that is correct though may not be the issue.
Re: ImageMagick on armhf fails to read labels or captions from file
Posted: 2016-05-22T22:16:22-07:00
by ajfclark
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:
Code: Select all
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:
Code: Select all
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:
Code: Select all
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 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 team then?