Image Interpolation
Image Interpolation (Pixel Resampling)
Image interpolation is the method used to calculate new pixel values when resizing an image. Different algorithms (nearest-neighbor, bilinear, bicubic, Lanczos) trade speed for quality when scaling images up or down.
Teknik Detay
Nearest-neighbor copies the closest pixel (fastest, blocky). Bilinear averages 4 neighbors. Bicubic uses 16 neighbors with cubic weighting. Lanczos uses a sinc-based windowed filter for the sharpest results.
Ornek
```javascript
// Image compression via Canvas
canvas.toBlob(
blob => console.log(`Size: ${(blob.size/1024).toFixed(0)} KB`),
'image/jpeg',
0.8 // quality: 0.0 (smallest) to 1.0 (best)
);
// WebP output (25-34% smaller than JPEG)
canvas.toBlob(cb, 'image/webp', 0.8);
```
Ilgili Araclar
C
Compress Image
R
Resize Image
C
Crop Image
R
Rotate Image
F
Flip Image
C
Convert Image
W
Watermark Image
S
SVG to PNG
I
Image to Base64
R
Round Corners
A
Add Border
I
Image Filters
A
Adjust Image
B
Blur Image
S
Sharpen Image
M
Make Square
G
Grayscale Image
S
Sepia Image
P
Pixelate Image
S
Strip Image Metadata