Screenshotlayer


2025, October 15

This project focused on the Screenshotlayer product, restructuring the code and architecture to make it fully functional for today’s technological needs, as most of the code and architecture were outdated.


Additionally, we have worked on adding new features, such as Retina/2x and WebP support, to increase our current customers' trust and potentially gain new customers.

Affected functions

  • Retina/2× resolution support
  • WebP format support

Retina/2x Support

Modern screens — especially on mobile devices and Apple hardware — have very high pixel densities. A screenshot that looks sharp on a regular monitor can appear blurry on a Retina/HiDPI display.

With the Retina/2× resolution option, users will be able to generate images that:

  • Appear crisp on modern devices
  • Suitable for embedding in high-end web apps or reports
  • Can be printed or zoomed without quality loss
     

API Parameter

Parameter

Type

Default

Description

scale

float (e.g., 1, 1.5, 2)

1

Determines device pixel ratio for rendering. Use 2 for Retina.


WebP format support

Screenshotlayer now supports generating screenshots in WebP, a modern image format developed by Google. WebP provides smaller file sizes while maintaining high visual quality, making it an excellent choice for web performance optimization.

  • Smaller file sizes: 25–35% reduction compared to PNG and JPEG.
  • Transparency support: Like PNG.
  • Efficient compression: Like JPEG.
  • Broad browser compatibility: Supported in ~95% of browsers worldwide, including Chrome, Edge, Firefox, and Safari.

Feature Specification

New API Parameter

Parameter

Type

Accepted Values

Default

Description

format

string

png, jpg, gif, webp

png

Defines output file format

quality (optional; only applies to lossy formats like jpg/webp)

integer

1-100

70

Defines the quality for the output

NOTE:

  • Free plans: WebP quality supports up to 70 by default.
  • Paid plans: WebP quality supports up to 70 by default, up to 100 with a customized quality parameter.