Usage

URL-to-PNG provides a single endpoint that accepts various query parameters to customize the generated image.

Query Parameters

Examples

Here are some example combinations of query parameters:

https://url2png.lp2.me?url=https://lp2.me
https://url2png.lp2.me?url=https://lp2.me&forceReload=true
https://url2png.lp2.me?url=https://lp2.me&isFullPage=true
https://url2png.lp2.me?url=https://lp2.me&isMobile=true
https://url2png.lp2.me?url=https://lp2.me&isDarkMode=true
https://url2png.lp2.me?url=https://lp2.me?width=400&height=400
https://url2png.lp2.me?url=https://lp2.me&viewPortHeight=400&viewPortWidth=400
https://url2png.lp2.me?url=https://lp2.me&isFullPage=true&isMobile=true&width=400&height=400&viewPortHeight=400&viewPortWidth=400
https://url2png.lp2.me?url=https://lp2.me&isMobile=true&isFullPage=true&viewPortWidth=375&width=375&deviceScaleFactor=1

Use in your HTML

<img src="https://url2png.lp2.me?url=https://lp2.me" alt="lp2.me web page screenshot">

lp2.me web page screenshot