<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042668" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042668</link>
    <description></description>
    <language>en</language>
          <item>
    <title>i want to  convert html page</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1270547</link>
    <description> &lt;p&gt;i want to  convert html page into image with php, but i can;t found any where proper response, i also use gd but not anything there, also i use imageegrabscreen(). please nay one hav any idea correct idea how to do this foor linux os. thnks plz reply soon as project deadline aare near...&lt;/p&gt;
 </description>
     <pubDate>Sat, 19 Nov 2011 10:43:39 +0000</pubDate>
 <dc:creator>amitgmail</dc:creator>
 <guid isPermaLink="false">comment 1270547 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Well that code snippet didn&#039;t</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1261958</link>
    <description> &lt;p&gt;Well that code snippet didn&#039;t work for me - @AndrewCF - can you possibly suggest what may be wrong?&lt;/p&gt;
&lt;p&gt;By the way, I&#039;m running latest version of PHP, but since I&#039;ve never tried something similar in past, I&#039;m not able to guess where I&#039;m going wrong!&lt;/p&gt;
 </description>
     <pubDate>Fri, 18 Feb 2011 11:13:57 +0000</pubDate>
 <dc:creator>omthoke</dc:creator>
 <guid isPermaLink="false">comment 1261958 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi Chris,
If you website</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1237441</link>
    <description> &lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;If you website based Windows server, you can use this HTML Convert SDK - ACA WebThumb ActiveX.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.acasystems.com/en/web-thumb-activex/faq-php-convert-html-to-image.htm&quot;&gt;A simple PHP Script for converting HTML to image&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp; $t_xMaker &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;COM&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;ACAWebThumb.ThumbMaker&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; or die(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Start ACAWebThumb.ThumbMakerfailed&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$t_xMaker&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;SetURL&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;http://www.webmaster-forums.net&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&amp;nbsp; if ( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$t_xMaker&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;StartSnap&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;() )&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Snap successful, call SetImageFile() to save the image.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Take screenshot successful.&quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$t_xMaker&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;SaveImage&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;c:/webmaster-forums.png&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;If you PHP version &amp;gt;= 5.2.2, you can using following code:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$browser &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= new &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;COM&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;InternetExplorer.Application&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$handle &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;HWND&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Visible &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Navigate&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;http://www.webmaster-forums.net&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;/* Still working? */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;while (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Busy&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;com_message_pump&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;4000&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$im &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;imagegrabwindow&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$handle&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$browser&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Quit&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;imagepng&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$im&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;webmaster-forums.png&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;imagedestroy&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$im&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 24 Jan 2009 14:01:02 +0000</pubDate>
 <dc:creator>AndrewCF</dc:creator>
 <guid isPermaLink="false">comment 1237441 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hey all, the html2fpdf did</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1236881</link>
    <description> &lt;p&gt;Hey all, the html2fpdf did most of what I needed so thanks for the great help.&lt;/p&gt;
 </description>
     <pubDate>Fri, 09 Jan 2009 22:28:48 +0000</pubDate>
 <dc:creator>thisismyurl</dc:creator>
 <guid isPermaLink="false">comment 1236881 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Those third party services</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1236839</link>
    <description> &lt;blockquote&gt;&lt;p&gt;Those third party services are designed for public pages though, not HTML code that the OP is trying to keep private.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I meant to include your html2fpdf in the phrase &lt;em&gt;third-party solution&lt;/em&gt;. Just haven&#039;t had any caffeine yet today.&lt;/p&gt;
&lt;p&gt;I really should remedy that problem immediately! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 08 Jan 2009 17:58:06 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1236839 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Those third party services</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1236838</link>
    <description> &lt;p&gt;Those third party services are designed for public pages though, not HTML code that the OP is trying to keep private.&lt;/p&gt;
 </description>
     <pubDate>Thu, 08 Jan 2009 17:51:41 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1236838 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I think you&#039;re right to go</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1236837</link>
    <description> &lt;p&gt;I think you&#039;re right to go with a third-party solution. Generating a screen shot from the server can be a real hassle: Web servers don&#039;t generally come with a window manager installed, as they take up valuable RAM. Xorg is taking up 200MB on my desktop machine, for example (although you&#039;ll need much less for just taking a screen shot of a Web page).&lt;/p&gt;
&lt;p&gt;I investigated doing screen shots for our &lt;a href=&quot;http://www.webmaster-forums.net/projects&quot;&gt;project pages&lt;/a&gt;, but found that installing Xorg, worrying about the amount of RAM it would take, and setting it all up was far more work than just using a third-party solution. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Good luck with your search though, and welcome to the forums!&lt;/p&gt;
 </description>
     <pubDate>Thu, 08 Jan 2009 17:46:43 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1236837 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I&#039;ve never tried it, but I</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1236779</link>
    <description> &lt;p&gt;I&#039;ve never tried it, but I think you could utilize the &lt;a href=&quot;http://www.php.net/imagegrabscreen&quot;&gt;imagegrabscreen()&lt;/a&gt; or &lt;a href=&quot;http://www.php.net/imagegrabwindow&quot;&gt;imagegrabwindow()&lt;/a&gt; functions from the GD library to output an image of the current screen.  They should both work something like this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//All of your normal code would go here&lt;br /&gt;//But before exiting, grab a snapshot&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;imagegrabscreen&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;imagejpeg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;my_screenshot.jpeg&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;imagedestroy&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
The imagegrabwindow() function requires more parameters that I haven&#039;t investigated, but the imagegrabscreen() function I believe would capture the entire screen, not just the window of focus.&lt;/p&gt;
 </description>
     <pubDate>Wed, 07 Jan 2009 20:18:00 +0000</pubDate>
 <dc:creator>kazimmerman</dc:creator>
 <guid isPermaLink="false">comment 1236779 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Thanks guys, both</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1236778</link>
    <description> &lt;p&gt;Thanks guys, both suggestions are great. I&#039;ll take a look at WebSnapr but based on the requirement to do multiple views of variable data, I might need to go with the PDF version. I&#039;ll let you both know how it turns out.&lt;/p&gt;
 </description>
     <pubDate>Wed, 07 Jan 2009 20:00:25 +0000</pubDate>
 <dc:creator>thisismyurl</dc:creator>
 <guid isPermaLink="false">comment 1236778 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I think the OP needs</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/converting-html-web-page-jpg-image-php#comment-1236775</link>
    <description> &lt;p&gt;I think the OP needs something more in house than websnapr.  There is a script &lt;a href=&quot;http://sourceforge.net/projects/html2fpdf/&quot;&gt;here&lt;/a&gt; that can make a PDF for you.  If you need it in an image format, there should be a script that could take it from PDF to the image format you&#039;re looking for.&lt;/p&gt;
 </description>
     <pubDate>Wed, 07 Jan 2009 19:21:11 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1236775 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
