Jump to content

How to go from HTML to a reduced image within a web page?


jhsachs

Recommended Posts

MyPHP application generates a one-page document in HTML (or PDF, if that turns out to be easier to work with, but so far it looks like a wash). I need to display it in reduced form in another web page.

 

I thought I would do this by converting the document to a JPG, which I could display with a <img height=... width=...> tag.

 

The more I study this the more complicated it gets. The only tool I've found recommended for the conversion is ImageMagick. I installed it on my development system (Windows XP) and promptly learned that it can't perform the HTML-to-JPG conversion without something called html2ps, which requires GhostScript.

 

So now I've got three applications to install, first on my Windows development system, then on the Linux servers that host my client's staging and production sites. I won't know how the three applications' Linux installation procedures work until I try to install them, but the servers do not give me shell access, so each of them promises to be difficult to install at best, impossible at worst. At the very least I'll need to unpack a .gz file, for which I'll either have to figure out how to run gunzip without shell access, or find another Linux system to run it on.

 

I think it's time to step back and look for another way to do this. Again, my objective is to display a document, originally HTML, in reduced form on a web page. Does anyone have suggestions?

imageMagick with GhostScript and html2ps will prbably be your best bet, php also has a graphics library called GD, however I do not believe that it has the capability that you are looking for...however working on a windows development system will complicate things a bit

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.