Imagemagick no roteador aberto wrt “UnableToOpenConfigureFile”

1

Instalei o Open Wrt no meu TP-Link TL-WR740N / ND v4. Tudo funciona bem, mas o Imagemagick. Eu instalei-o no RAM (sem espaço suficiente na ROM) com opkg

# opkg install imagemagick imagemagick-png imagemagick-jpeg imagemagick-tools -d ram
...
...
# opkg list-installed | grep imagema
imagemagick - 6.7.8-1
imagemagick-jpeg - 6.7.8-1
imagemagick-png - 6.7.8-1
imagemagick-tools - 6.7.8-1

mas não estou recebendo UnableToOpenConfigureFile porque não há arquivos de configuração. Alguém sabe omitir isso?

# convert -debug configure picture.jpeg picture.jpeg 
2013-10-14T14:45:24+00:00 0:00.010 0.010u 6.7.8 Configure convert[2677]: utility.c/ExpandFilenames/939/Configure
  Command line: convert {-debug} {configure} {picture.jpeg} {picture.jpeg}
2013-10-14T14:45:24+00:00 0:00.020 0.020u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.7.8/coder.xml"
2013-10-14T14:45:24+00:00 0:00.020 0.020u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/coder.xml"
2013-10-14T14:45:24+00:00 0:00.030 0.030u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/etc/ImageMagick/coder.xml"
2013-10-14T14:45:24+00:00 0:00.030 0.030u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/coder.xml"
2013-10-14T14:45:24+00:00 0:00.030 0.030u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/root/.magick/coder.xml"
2013-10-14T14:45:24+00:00 0:00.060 0.060u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.7.8/magic.xml"
2013-10-14T14:45:24+00:00 0:00.070 0.070u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/magic.xml"
2013-10-14T14:45:24+00:00 0:00.070 0.070u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/etc/ImageMagick/magic.xml"
2013-10-14T14:45:24+00:00 0:00.070 0.070u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/magic.xml"
2013-10-14T14:45:24+00:00 0:00.070 0.070u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/root/.magick/magic.xml"
2013-10-14T14:45:24+00:00 0:00.090 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.7.8/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.090 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.090 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/etc/ImageMagick/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.090 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.100 0.090u 6.7.8 Configure convert[2677]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/root/.magick/delegates.xml"
2013-10-14T14:45:24+00:00 0:00.100 0.090u 6.7.8 Configure convert[2677]: delegate.c/LoadDelegateList/1228/Configure
  Loading delegate configuration file "built-in" ...
convert: UnableToOpenConfigureFile 'delegates.xml' @ warning/configure.c/GetConfigureOptions/591.
convert: NoDecodeDelegateForThisImageFormat 'picture.jpeg' @ error/constitute.c/ReadImage/544.
convert: NoImagesDefined 'picture.jpeg' @ error/convert.c/ConvertImageCommand/3044.

EDITAR

Eu já tentei copiar meus delegados da caixa do Ubuntu para o roteador, mas sem sorte.

Agora acabei de me livrar de UnableToOpenConfigureFile

# convert -debug configure picture.jpeg picture.jpeg 
2013-10-14T15:14:34+00:00 0:00.000 0.000u 6.7.8 Configure convert[2789]: utility.c/ExpandFilenames/939/Configure
  Command line: convert {-debug} {configure} {picture.jpeg} {picture.jpeg}
2013-10-14T15:14:34+00:00 0:00.010 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.7.8/coder.xml"
2013-10-14T15:14:34+00:00 0:00.010 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/coder.xml"
2013-10-14T15:14:34+00:00 0:00.020 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/etc/ImageMagick/coder.xml"
2013-10-14T15:14:34+00:00 0:00.020 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/coder.xml"
2013-10-14T15:14:34+00:00 0:00.020 0.000u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/root/.magick/coder.xml"
2013-10-14T15:14:34+00:00 0:00.020 0.000u 6.7.8 Configure convert[2789]: coder.c/LoadCoderList/693/Configure
  Loading coder configuration file "/usr/share/ImageMagick-6.7.8/coder.xml" ...
2013-10-14T15:14:34+00:00 0:00.050 0.030u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.7.8/magic.xml"
2013-10-14T15:14:34+00:00 0:00.060 0.040u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/magic.xml"
2013-10-14T15:14:34+00:00 0:00.060 0.040u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/etc/ImageMagick/magic.xml"
2013-10-14T15:14:34+00:00 0:00.060 0.040u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/magic.xml"
2013-10-14T15:14:34+00:00 0:00.060 0.040u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/root/.magick/magic.xml"
2013-10-14T15:14:34+00:00 0:00.080 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.7.8/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.080 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.7.8/config/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.080 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/etc/ImageMagick/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.080 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.7.8/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.090 0.060u 6.7.8 Configure convert[2789]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/root/.magick/delegates.xml"
2013-10-14T15:14:34+00:00 0:00.090 0.060u 6.7.8 Configure convert[2789]: delegate.c/LoadDelegateList/1228/Configure
  Loading delegate configuration file "/usr/share/ImageMagick-6.7.8/delegates.xml" ...
convert: NoDecodeDelegateForThisImageFormat 'picture.jpeg' @ error/constitute.c/ReadImage/544.
convert: NoImagesDefined 'picture.jpeg' @ error/convert.c/ConvertImageCommand/3044.
    
por Patryk 14.10.2013 / 16:46

1 resposta

2

Você precisa instalar os arquivos de configuração ( delegates.xml etc.) em um diretório que o imagemagick pesquise ( /root/.magick/ ou /usr/share/doc/ImageMagick-6.7.8/ ou /usr/share/ImageMagick-6.7.8/ ou /usr/lib/ImageMagick-6.7.8/config/ ou /etc/ImageMagick/ .)

Se ele pesquisar em outro diretório, você pode, por exemplo, link simbólico desses diretórios para o correto, ou precisa recompilar imagemagick.

    
por 14.10.2013 / 17:23