Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.