🍋
Menu
Image

Chromatic Aberration

A lens defect causing color fringing at edges where different wavelengths of light focus at slightly different points.

Detail Teknis

In digital imaging, chromatic aberration plays a critical role in how images are stored, processed, and displayed. Modern image pipelines handle lens through standardized APIs (Canvas, WebGL, ImageBitmap) that operate directly on GPU memory for performance. Understanding chromatic aberration is essential for optimizing web delivery, where image payload typically accounts for 40-60% of total page weight. Browser-based tools can manipulate lens entirely client-side using the Canvas API without server round-trips.

Contoh

```javascript
// Chromatic Aberration: processing with Canvas API
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
ctx.drawImage(sourceImage, 0, 0);
const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
// Process pixels in imageData.data (RGBA array)
```

Alat Terkait

Istilah Terkait