convert pdf to image - imagemagick - ghostscript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jayapalchandran
    New Member
    • Sep 2007
    • 5

    #16
    unable to load imagic dll

    Hi,
    thank you for your replies. now i enabled display_startup _errors and when i restarted apache it displayed that it cannot load this dll. what could be the problem?

    message is "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem"

    Comment

    • Ciary
      Recognized Expert New Member
      • Apr 2009
      • 247

      #17
      i encountered the same. all links on google give me the same problem. just keep trying 'till it starts.

      Comment

      • omerbutt
        Contributor
        • Nov 2006
        • 638

        #18
        By reading all these posts i would like to guide in a way which helped me a lot.

        To install IMagick on windows xp (php 5.2.x)

        1.) download and install ImageMagick-6.5.8-7 Q16-windows-dll.exe
        http://www.imagemagick.org/download/binaries/ ImageMagick-6.5.8-7-Q16-windows-dll.exe

        2.) download php_imagick_dyn-Q16.dll from:
        http://valokuva.org/outside-blog-content/ imagick-windows-builds/080709/

        copy dll to [PHP]/extension dir and rename it to php_imagick.dll

        (step 2 is not compulsory if you already have the extension installed you need to check in your ext / extensions directory if that php_imagick.dll file exists)

        3.) You have to edit your php.ini file and add new extension

        "extension=php_ imagick.dll"

        4.) Save ini file and restart apache server.

        (If necessary, restart your windows)

        5.) phpinfo() should show imagick enabled.

        now till here every thing is fine but when we go to phpinfo it wont show that imagick is enabled ,
        the thing to notice are these two lines
        No 6 & No 7 on the phpinfo page which have this text

        Configuration File (php.ini) Path
        Loaded Configuration File


        check that the Configuration File (php.ini) Path
        and the
        Loaded Configuration File
        are loading any files. when i was working for the first time it really made me mad
        it showede nothing in the Loaded Configuration File tab, it said that no configuration is loaded if this is what the problem is with you then you must enable the changes in the file which is located in the
        Configuration File (php.ini) Path otherewise you must change the other file which is against Loaded Configuration File
        go there uncomment the
        extension=php_i magick.dll
        and then restart apache
        it will work ,
        and to convert i prefer this method rather than jargon of code
        [code=php]
        exec("convert test.pdf -thumbnail 800x600 converted_pdf.t iff");
        [/code]
        Hope that helps you out.
        regards,
        Omer Aslam

        Comment

        • omerbutt
          Contributor
          • Nov 2006
          • 638

          #19
          @Sinsain nice ......... can these steps be done through a language or web service....:D ...lol .....
          regards,
          Omer Aslam.

          Comment

          Working...