Simple label command fails

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
previsualconsent
Posts: 3
Joined: 2017-08-10T09:04:54-07:00
Authentication code: 1151

Simple label command fails

Post by previsualconsent »

I am using

Code: Select all

Version: ImageMagick 6.7.2-7 2017-03-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP  
on Scientific Linux 6

When I try the simple labeling examples like

Code: Select all

convert -debug all rose: label:test  x.png
I get the error

Code: Select all

convert: not authorized `test' @ error/constitute.c/ReadImage/453.
My best guess is that it is interpreting label: as a protocol like http:

Here is the debug output.
https://gist.github.com/previsualconsen ... abb10d7bf4
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Simple label command fails

Post by snibgo »

'test' just says roughly where in the command it failed. You don't have an authority. Does it work without the label? How about:

Code: Select all

convert rose: x.png

Code: Select all

convert label:test x.png
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Simple label command fails

Post by fmw42 »

I do not see any delegates listed under Features. What do you get from

Code: Select all

convert -list configure
on the line that starts with DELEGATES
previsualconsent
Posts: 3
Joined: 2017-08-10T09:04:54-07:00
Authentication code: 1151

Re: Simple label command fails

Post by previsualconsent »

Yes, it works with label.

Code: Select all

$ convert -list configure |grep DELEGATES
DELEGATES     bzlib fontconfig freetype gs jpeg jng jp2 lcms openexr png rsvg tiff x11 xml wmf zlib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Simple label command fails

Post by fmw42 »

Your command

Code: Select all

convert rose: label:test  x.png
Works fine for me under IM 6.9.9.5 Q16 Mac OSX. I get two outputs, x-0.png (rose) and x-1.png (text).

I suspect a bug in the patch for your version given by the date next to the release. I have heard other issues with recent patches to Linux distributions of Imagemagick.
previsualconsent
Posts: 3
Joined: 2017-08-10T09:04:54-07:00
Authentication code: 1151

Re: Simple label command fails

Post by previsualconsent »

Got to love using centrally managed workstations with no real support for upgrading packages :P
Post Reply