Fast & Reliable
Compress, Resize, & Crop Images Effortlessly
A highly optimized, server-side image processing utility. Just pass your parameters via URL query strings and request instantly.
Live Preview Output![API Generated Output]()
Load a demo image or enter an URL to see changes
API Documentation
PicScale allows real-time transformation of remote images using URL parameters.
Method: GET
Base Endpoint
https://picscale.vercel.app/imageRequest Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| src | string | Yes | The absolute URL of the remote image (JPEG, PNG, or WebP). |
| w | integer | No | Target output width in pixels. Keep empty to auto-calculate maintaining the original aspect ratio. |
| h | integer | No | Target output height in pixels. Keep empty to auto-calculate maintaining the original aspect ratio. |
| crop | boolean | No | Must be set to 1 to activate. Scaled-and-cropped from the center to strictly fill target dimensions. |
| q | integer | No | Compression scale value between 1 (lowest quality, highest compression) and 100. Default is 80. |
| format | string | No | Converts image output format. Acceptable inputs: original, webp, jpeg (or jpg), and png. Default is original. |
HTML Implementation Example
HTML<!-- Example of integrating directly into web content -->
<imgsrc="https://picscale.vercel.app/image?src=https://unsplash.com/sample.jpg&w=400&h=300&crop=1&format=webp"alt="Cropped Thumbnail"loading="lazy">
<imgsrc="https://picscale.vercel.app/image?src=https://unsplash.com/sample.jpg&w=400&h=300&crop=1&format=webp"alt="Cropped Thumbnail"loading="lazy">