Re: Converting PDF to PNG/JPG

John Kambeel <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <[email protected]>
According to the log below all the needed files can be loaded. 

+++++++++++++++++++++
2010-03-23T08:08:43+01:00 0:01 0.000u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/ImageMagick-6.5.5/config/coder.xml"
2010-03-23T08:08:43+01:00 0:01 0.000u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/lib/ImageMagick-6.5.5/config/coder.xml"
2010-03-23T08:08:43+01:00 0:01 0.000u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/doc/ImageMagick-6.5.5/coder.xml"
2010-03-23T08:08:43+01:00 0:01 0.000u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/ImageMagick-6.5.5/coder.xml"
2010-03-23T08:08:43+01:00 0:01 0.000u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/root/.magick/coder.xml"
2010-03-23T08:08:43+01:00 0:01 0.000u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "coder.xml"
2010-03-23T08:08:43+01:00 0:01 0.000u 6.5.5 Configure convert[32400]: coder.c/LoadCoderList/639/Configure
  Loading coder configuration file "/opt/share/ImageMagick-6.5.5/config/coder.xml" ...
2010-03-23T08:08:43+01:00 0:01 0.010u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/ImageMagick-6.5.5/config/delegates.xml"
2010-03-23T08:08:43+01:00 0:01 0.010u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/lib/ImageMagick-6.5.5/config/delegates.xml"
2010-03-23T08:08:43+01:00 0:01 0.010u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/doc/ImageMagick-6.5.5/delegates.xml"
2010-03-23T08:08:43+01:00 0:01 0.010u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/ImageMagick-6.5.5/delegates.xml"
2010-03-23T08:08:43+01:00 0:01 0.010u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/root/.magick/delegates.xml"
2010-03-23T08:08:43+01:00 0:01 0.010u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "delegates.xml"
2010-03-23T08:08:43+01:00 0:01 0.010u 6.5.5 Configure convert[32400]: delegate.c/LoadDelegateList/1194/Configure
  Loading delegate configuration file "/opt/lib/ImageMagick-6.5.5/config/delegates.xml" ...
2010-03-23T08:08:43+01:00 0:01 0.030u 6.5.5 Configure convert[32400]: utility.c/ExpandFilenames/867/Configure
  Command line: convert {-debug} {configure} {logo:} {null:}
2010-03-23T08:08:43+01:00 0:01 0.040u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/ImageMagick-6.5.5/config/magic.xml"
2010-03-23T08:08:43+01:00 0:01 0.040u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/lib/ImageMagick-6.5.5/config/magic.xml"
2010-03-23T08:08:43+01:00 0:01 0.040u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/doc/ImageMagick-6.5.5/magic.xml"
2010-03-23T08:08:43+01:00 0:01 0.040u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/share/ImageMagick-6.5.5/magic.xml"
2010-03-23T08:08:43+01:00 0:01 0.040u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/root/.magick/magic.xml"
2010-03-23T08:08:43+01:00 0:01 0.040u 6.5.5 Configure convert[32400]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "magic.xml"
2010-03-23T08:08:43+01:00 0:01 0.050u 6.5.5 Configure convert[32400]: magic.c/LoadMagicList/682/Configure
  Loading magic configure file "/opt/share/ImageMagick-6.5.5/config/magic.xml" ...
++++++++++++++++++++++++


Convert from png to jpg is no problem, but when I convert from pdf to an image then there apparently is a problem. 

/usr/syno/bin/convert /volume1/TEMP/test.pdf /volume1/TEMP/test.png

I get the following errors:

++++++++++++++++++++++++
Warning: GenericResourceDir doesn't point to a valid resource directory.
               the -sGenericResourceDir=... option can be used to set this.

convert: UnableToOpenConfigureFile `delegates.xml'.
++++++++++++++++++++++++

My questions:
1. Where and how can I set this path to "delagates.xml"
2. Where and how can I set "GenericResourceDir" (that is belonging to ghostscript.......which I have installed already)


Regards,
John
P.S: thx for helping out!



Op 23 mrt 2010, om 02:47 heeft da.mihi.sis.bubulae.frustrum.assae.solana.tuberosa.in.modo.gallico.fricta.ac.quassum.lactatum.coagulatum.crassum@imagemagick.org het volgende geschreven:

> convert -debug configure logo: null:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.