0

i have HTML with inline style that using transform attribute of Css3.0. i want to convert into image. i am not using canvas and i already tried with html2canvas and other API's for capturing screenshot but its not working for me. i really tried too much for convert it to image. below are the URL of HTML. i want to convert it to image. please help me to solve this.

http://gurutechnolabs.co.in/websites/Corephp/strawberry/test.php

i have also tried with wkhtmlimage i get this output:test image

2
  • Please post you're code or JSfiddle. Not an external site.. Commented Oct 27, 2015 at 11:52
  • I had this problem too. I've resolved with these answers. Commented Oct 27, 2015 at 11:53

1 Answer 1

0

There are two way I know and worked perfect for me,

User

wkhtmltoimage

It takes the HTML and convert it to image. It support all html5 and css3 properties. You can read more about it here http://www.catchstudio.com/labs/php-screenshots/

HTML2PDF utility and then imagick in php

The idea here is to convert HTML to PDF and then to image. First HTML2PDF will convert html to PDF and then Imagick which is an wrapper in php for imagemagick will convert it into desired format image. You can read more about it here http://buffernow.com/html-to-image-php-script/

Hope this helps to you!

Sign up to request clarification or add additional context in comments.

2 Comments

i already tried with html2pdf & imagemagick its not working. when image written in pdf then loose their transformations. and can you say me how to use wkhtmltoimage . i don't know how to install it & where to apply commands?
wkhtltoimage is an extension of wkhtmltopdf. The link I gave has the steps to install it. Try them once

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.