using html2ps php version with imagemagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jpotter
Posts: 7
Joined: 2011-04-18T07:12:43-07:00
Authentication code: 8675308

using html2ps php version with imagemagick

Post by jpotter »

Is there any special configuration I must do to have imagemagick (convert utility) use the php version of html2ps? The php version appears to have cleaner output then the perl-script version.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: using html2ps php version with imagemagick

Post by anthony »

The html2ps is executed through a delgate
You can IM's use of the command using

Code: Select all

convert -list delegate  | grep html2ps

Code: Select all

        htm =>          "html2ps" -U -o "%o" "%i"
       html =>          "html2ps" -U -o "%o" "%i"
      shtml =>          "html2ps" -U -o "%o" "%i"
Which means html is converted to something IM will automatically recognise (postscript). IM then uses a "ghostscript" delegate to convert that to a raster image.


Check what your PHP version of IM is using, compared to the CLI (probably on another machine)
Also check versions of IM. ghostscript, and html2ps, as one may have 'improvements'.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply