Cropping screenshots allows you to focus on specific sections of your webpage, such as logos, tables, or important content areas. This feature is invaluable for creating precise visual content for presentations, reports, or marketing materials.
By selecting and cropping just the portion you need, you can ensure that your screenshots highlight only the most relevant information, improving clarity and effectiveness.
To crop a specific area of your screenshot, you'll need to configure the following parameters:
The X and Y coordinates are optional and default to 0,0 (top-left corner) if not specified.
Below is an example of cropping a screenshot starting from coordinates X=645 and Y=184, with a viewport size of 643x296 pixels.
// Example API request for cropping a screenshot https://api.addscreenshots.com/screenshots
?apikey=YOUR_API_KEY
&crop_area_x=645
&crop_area_y=184
&crop_area_viewport=643x296
&url=google.com
Your API key can be found on the API Keys page. Need an API Key? Sign up to get started.
For internal applications, replace YOUR_API_KEY with your own unique API Key.
For public facing websites or hotlinks, generate a signed URL.
To accurately determine the area and coordinates for cropping, follow these steps: