Create WebThumb using LAMP

On April 20, 2010, in Amazon Cloud EC2 S3, CentOS, Fedora, LAMP, Linux, Open Source, Tips, Tricks, Web Application, by Sandeep Verma

Hits: 281  We have to install opera/firefox  first on server. Then install Xvfb for Xvfb virtual framebuffer html2image.sh ………………………. #! /bin/sh /etc/init.d/xvfb start export DISPLAY=:7 DISPLAY=:7 opera –remote ‘openURL(‘$1′)’ & sleep 20 DISPLAY=:7  import -window root $2 /etc/init.d/xvfb stop Uses: # ./html2image.sh  http://www.svnlabs.com   webthumb/svnlabs.png Open FireFox in Xvfb: firefox.sh #!/bin/sh mozilla-firefox -a firefox -remote ‘openURL(‘$1′, new-tab)’ [...]

HTMLDOC – html2image

On September 22, 2009, in Fedora, LAMP, Linux, PHP, Tips, Tricks, Web Application, by Sandeep Verma

Hits: 120  htmldoc is a powerful simple-to-use tool/utility, which converts HTML to Postscript, PDF or indexed HTML output. # convert /var/www/html/html2img/grid.ps -crop 280×300+40+9 -modulate 100 -geometry 530×480 /var/www/html/html2img/grid.png here convert is ImageMagick tool for manipulating images..

Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...