Compression Artifact
Compression Artifact (Visual Distortion)
Compression artifacts are visible distortions introduced by lossy compression algorithms. Common artifacts include blockiness (JPEG macroblocks), ringing around sharp edges, color banding in gradients, and mosquito noise.
التفاصيل التقنية
JPEG artifacts result from quantization of DCT coefficients, where high-frequency detail is discarded. Artifacts worsen at lower quality settings and accumulate with repeated saves (generation loss).
مثال
```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);
```
صيغ ذات صلة
أدوات ذات صلة
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