You can specify any URL2PNG parameters as a suffix of the original website being captured.
The suffix should be /url2png/
followed by any parameters of URL2PNG in the format key=value|key=value|key=value
.
Here's an example:
For a URL like the following http://www.site.com/?a=b
you can add URL2PNG parameters like:http://www.site.com/?a=b/url2png/viewport=240x320|fullpage=false
Then you can use a code like the following example to generate the image (in Rails):
cl_image_tag("http://www.site.com/?a=b/url2png/viewport=240x320|fullpage=false", :type => :url2png, :sign_url => true)
The generated screenshot can then be further manipulated using Cloudinary's transformations.
Comments
2 comments
4 months later
Here.
https://cloudinary.com/blog/website_screenshot_creation_and_manipulation_with_url2png_and_cloudinary
Please sign in to leave a comment.