does url2png have viewport option?
Hi guys,
I am considering the utilization of the url2png feature. But I highly depended on the viewport.
Could you please advise me on how to apply that option to get a mobile view screenshot?
Thank you
0
-
Hi,
You can apply the viewport as part of your URL. For example in nodeJS:
cloudinary.image("https://cnn.com/?a=b/url2png/viewport=240x320|fullpage=false", {gravity: "north", height: 200, width: 150, crop: "fill", sign_url: true, type: "url2png"})Please let me know if that works,
0 -
Hey @Shirly,
Thanks for your reply!
Do you mean that it is possible only when I use API requests through SDK ?0 -
It's indeed our best practice. the reason is that it must use sign URL to avoid abusing your account. we can change it on your account but then everyone can use it on your account on the fly.
If that something that you would like to explore. please open a ticket for us at support@cloudinary.com
Best,
0
Post is closed for comments.
Comments
3 comments