Fast, hardware accelerated, image resizing and conversion!
+ document thumbnail generation.
import Scaler from 'scaler.pics';
const scaler = new Scaler('YOUR_API_KEY');
const { outputImage } = await scaler.transform({
input: { localPath: '/path/to/large-image.heic' },
output: {
type: 'jpeg',
fit: { width: 512, height: 512 },
quality: 0.8,
},
});
Plenty of Image and Document Formats
Input formats: JPEG, PNG, HEIC (Yes HEIC! 🚀), WEBP, TIFF, GIF, BMP, PSD, PDF, DOCX, XLSX, RTF, ODF, Pages and more. Output formats: JPEG, PNG, HEIC.
Support Large Images
No more restrictive upload limits for your users! Scaler handles transforming high resolution images with speed.
Privacy
Images uploaded to Scaler are stored on our servers only for as long as needed for processing and then immediately removed.
Storage Control
While we do not offer CDN hosting directly, Scaler is designed to integrate smoothly with your existing storage and caching solution, providing you with complete control over your content distribution.
Unparalleled Speed
Thanks to hardware-accelerated processes, what used to take several seconds now takes milliseconds. Experience a significant boost in efficiency without sacrificing quality.
Free your CPUs
Large image conversion can be very costly for the normal server CPUs and can cause delays and bottlenecks. Let us handle the heavy lifting of image processing.
Benchmarks ⚡️
Benchamrks are performed on high resolution, 12 megapixel images, converting from HEIC format to JPEG.
Hardware used is Regular Intel Digitalocean droplet, 1 vCPU, 2 GB.
Images | Scaler | heic-convert |
---|---|---|
Single image | 2.2s | 4.1s |
5x images concurrently | 2.8s | 16.5s |
10x images concurrently | 3.7s | crash (out of memory) |
Note: Scaler's time include the time for uploading source image and downloading the destination image. The actual conversion time is below 100ms for single 12 megapixel HEIC image.