Troubles with convert from HTML to JPG

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
scofer

Troubles with convert from HTML to JPG

Post by scofer »

C:\ImageMagick>convert test.html test.jpg
convert: `%s': %s html2ps -U -o "C:/DOCUME~1/artix/LOCALS~1/Temp/magick-14HHinPg
" "C:/DOCUME~1/artix/LOCALS~1/Temp/magick-MPILb9PD".
convert: Delegate failed `html2ps -U -o "%o" "%i"'.
convert: unable to open image `C:/DOCUME~1/artix/LOCALS~1/Temp/magick-14HHinPg':
No such file or directory.
convert: UnableToOpenBlob `C:/DOCUME~1/artix/LOCALS~1/Temp/magick-14HHinPg': No
such file or directory.
convert: missing an image filename `test.jpg'.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Troubles with convert from HTML to JPG

Post by magick »

For some image formats, ImageMagick requires an external delegate program or library. For HTML it requires both. It requires the script program html2ps to interpret HTML and it requires libJPEG to write JPEG images. You can see if ImageMagick already support JPEG with this command:
  • identify -list format
Make sure the JPEG tag has a mode of rw- (read/write).
scofer

Re: Troubles with convert from HTML to JPG

Post by scofer »

I have libJPEG, but where i can find html2ps ?

I cant find anything via google :(
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Troubles with convert from HTML to JPG

Post by Bonzo »

I put html2ps into google and found some links straight away.

From memory there is the original Perl version and a php version.
Post Reply