jhsachs Posted July 30, 2011 Share Posted July 30, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/243304-how-to-go-from-html-to-a-reduced-image-within-a-web-page/ Share on other sites More sharing options...
AyKay47 Posted July 30, 2011 Share Posted July 30, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/243304-how-to-go-from-html-to-a-reduced-image-within-a-web-page/#findComment-1249541 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.