Skip to main content

does url2png have viewport option?

Comments

3 comments

  • Shirly Manor

    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
  • Pavel Burylichau

    Hey @Shirly,

    Thanks for your reply!
    Do you mean that it is possible only when I use API requests through SDK ?

     

    0
  • Shirly Manor

    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.