Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ASP & ImageMagick

Options
  • 14-07-2004 3:50pm
    #1
    Closed Accounts Posts: 216 ✭✭


    Hey,

    I've been using ImageMagick (http://www.ImageMagick.org) Objects on an ASP page to resize and manipulate images. However, I keep getting this crazy error:

    Error: convert: 0: unknown: unknown

    The strange thing is, that is does the resizing and causes an error for little of no reason I can see.

    I can stop the error coming up if I add the following
    On Error Resume Next
    Const ERROR_SUCCESS = 0

    but, that ignores all errors.

    Has anyone used this application before and have any idea how to resolve this issue?


Comments

  • Moderators, Politics Moderators Posts: 39,765 Mod ✭✭✭✭Seth Brundle


    have you an error number from it or a line # with that lines code?


  • Closed Accounts Posts: 216 ✭✭gogul


    Line 7
    Char 1
    Error Code 80041771

    <%Option Explicit

    Dim img

    Set img = CreateObject("ImageMagickObject.MagickImage.1")

    msgs = img.Convert("convert:","-crop","200x200+0+67","images\evil.jpg", "images\evil4.jpg")
    msgs = img.Convert("convert:", "-font", "C:/WINNT/fonts/arial.ttf", "-draw=text 30,50 '+353877469248'", "images\evil4.jpg", "images\evil5.jpg")

    %>


  • Moderators, Politics Moderators Posts: 39,765 Mod ✭✭✭✭Seth Brundle


    erm which is line 7?


  • Closed Accounts Posts: 216 ✭✭gogul


    Sorry kbannon,.

    7 is the first line that starts "msgs =......"


  • Moderators, Politics Moderators Posts: 39,765 Mod ✭✭✭✭Seth Brundle


    not sure if it is the cause but given the "option explicit" bit you would need to Dim msgs


  • Advertisement
  • Closed Accounts Posts: 216 ✭✭gogul


    Sorry kbannon. I just left the 'DIM msgs' out of the Post..it is actually there in the code.

    The problem itself does not lie within the ASP code, its actually something to do with the ImageMagick object. I 'm looking for someone who has encountered this problem while using Imagemagick in an ASP environment


  • Moderators, Politics Moderators Posts: 39,765 Mod ✭✭✭✭Seth Brundle


    Can't see the cause of it but have a look at these:-
    http://www.google.com/search?q=ImageMagickObject.MagickImage.1++80041771&hl=en&lr=&ie=UTF-8&filter=0
    http://studio.imagemagick.org/Sage/scripts/Sage.cgi?query=80041771&sa=Search
    One of which I can quote from:-
    "I hate to say this, but I gave up on ImageMagick. It just isn't made for Windows and that is really noticable. I never made it run stable for more than 1 run. It always throws in strange errors that no-one seems able to fix.

    I am happy to work on a project that has a huge budget, so we are going to use Adobe Graphics Server. Stable, fast and perfect results!
    "

    Maybe try re-installing it?


  • Closed Accounts Posts: 216 ✭✭gogul


    Cheers kbannon

    I guess I'll have to live with the error...I dont have a hugh budget..:(

    I have, however, found software that is quite cheap and performs all the same functions as ImageMagick (bit slower when saving files, though), http://www.chestysoft.com. Only a $100 and really easy to use..


  • Registered Users Posts: 834 ✭✭✭fragile


    This guy appears to found a solution to a very similar problem with ImageMagik..

    http://studio.imagemagick.org/pipermail/magick-users/2002-November/006109.html

    hope this helps


Advertisement