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..
Here is the code to convert text to image or simply write text on image….
<?php
$img=ImageCreate (100,20);
$background_color=ImageColorAllocate($img,255,205,255);
$textcolor=ImageColorAllocate ($img,203,14,91);
ImageString($img,3,5,5,”svnlabs.com!”,$textcolor);
ImagePNG ($img, “svnlabs.png”);
$img2 = imagerotate ($img, 100, 0);
ImagePNG($img2,”svnlabs.png”);
ImageDestroy($img);
ImageDestroy($img2);
?>
Now we can post updates on Twitter by CURL command line ….
CURL: It allows us to connect and communicate to different types of servers with different types of protocols (http, https, ftp, gopher, telnet, dict, file, and ldap protocols) using user+password authentication.
# curl -u USERNAME:PASSWORD -d status=”UPDATE TEXT” http://twitter.com/statuses/update.xml
Keep updating Twitter….
Today I got a problem to show product title in 2 lines on product’s detail page…..
After some R&D………………..
I got solution by CSS to style a DIV with height for 2 line text and then overflow: hidden
I also used wordpress to wrap the text in next line for product’s description in 5 lines.
Amazing “DIV – Overflow Hidden” is great solution for making site symmetric