English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am trying to take a webpage that I create and making jpg/gif images from it? I know you can go HTML->PDF->JPG/GIF by using ImageMagick - but there has to be a way to do it in one shot!

Thanks!

2007-02-18 20:14:55 · 4 answers · asked by coolantsv 1 in Computers & Internet Programming & Design

I want to do it on the fly. I would pass some html into a variable and it would create a jpeg image out of it.

$var = "test";
convertToJpg($var);

2007-02-18 20:25:36 · update #1

4 answers

On Linux based system
Install html2image software.
and from your php script call this software using exec or system function and pass your variable (which contains html) as parameter. Just go through the software html2image. you can find it here
http://www.freedownloadscenter.com/Programming/Components_and_Libraries/Html2image_Linux.html

2007-02-18 21:11:37 · answer #1 · answered by Atif Majid 3 · 1 0

the strategies you gained on GIF and JPEG photos is actual. All you're waiting to prefer to do is seek for for a .bmp converter to GIF or JPEG on Google. you will locate plenty and ninety 9% are unfastened. choose this enables.

2016-10-16 00:03:18 · answer #2 · answered by ? 4 · 0 0

Its either you use the prt scr button on your keyboard and paste it. OR You can use a web-design software to export as a preferred image format.

2007-02-18 21:06:49 · answer #3 · answered by madabout_life 2 · 0 0

Why don't you use the magic button on your keyboard 'PrtSc'?
Just press it and paste it in the graphics editor ea. paint or any other of your choice.

2007-02-18 20:20:07 · answer #4 · answered by r0msk1 2 · 0 0

fedest.com, questions and answers