Is there an API that can take the content from a div from a webpage and convert it into an image?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Checkout thumbalizr. It also has an API.
Here’s a
1280pxscreenshot of this page.To get just the div that you are interested in, find the div’s offsets and dimensions, then use any image manipulation library to carve out those coordinates from the entire image starting at
(offsetX, offsetY)and having dimensions(width, height).