Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

ASP & ImageMagick

  • 14-07-2004 03: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, Paid Member Posts: 44,263 Mod ✭✭✭✭Seth Brundle


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

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



  • 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, Paid Member Posts: 44,263 Mod ✭✭✭✭Seth Brundle


    erm which is line 7?

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



  • Closed Accounts Posts: 216 ✭✭gogul


    Sorry kbannon,.

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


  • Moderators, Politics Moderators, Paid Member Posts: 44,263 Mod ✭✭✭✭Seth Brundle


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

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



  • 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, Paid Member Posts: 44,263 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?

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



  • 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, Registered Users 2 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