#108 BlobToImage returns NULL

closed-works-for-me
5
2011-11-27
2009-03-24
hilt2
No

A BlobToImage call returns NULL for a html file (IMDisplay says "Delegate failed (html2ps -U -o...) and the PImrExceptionInfo is empty (does not indicate any error).
PImrExceptionInfo should probably be filled in this case.

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2009-03-24

    In order to render HTML files, html2ps needs to be installed and working. It is likely you do not have this package installed. I do not know if html2ps can be installed under Windows since I have never tried that before.

    What is "PImrExceptionInfo"? What version of GraphicsMagick are you using?

    Thanks,

    Bob

     
  • hilt2

    hilt2 - 2009-03-24

    Yes. I do not have html2ps.
    I use 1.1.7Q16
    PImrExceptionInfo is just Delphi equivalent to ExceptionInfo *

    The thing is I check for ExceptionInfo.severity and it is 0. At the same time the return value is NULL which crashed my program. I'd expect a non-null value in .severity in case of an error (or please clarify this in the documentation if it is an expecte behaviour)

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2009-03-24

    It is always wise to check returned pointers for NULL. I agree that it is a bug if there is no exception information being reported.

    The version of GraphicsMagick you are using is very old. The current release is 1.3.5 and even in the 1.1 release series, 1.1.14 is the latest release.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2011-11-27

    Current GraphicsMagick does return useful error information to the user rather than just returning a null pointer. It returns this error info:

    Delegate failed ("html2ps" -U -o "%o" "%i")

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2011-11-27
    • labels: 595549 --> File Format Support
    • status: open --> closed-works-for-me
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks