AVIF
حساب المحيط
المسافة حول الحافة الخارجية لشكل ثنائي الأبعاد. بالنسبة للدوائر يسمى خصيصًا المحيط الدائري.
التفاصيل التقنية
صيغ المحيط: مستطيل P = 2(l + w)؛ مثلث P = a + b + c؛ دائرة C = 2πr أو πd؛ مضلع منتظم P = n × s (عدد الأضلاع × طول الضلع). بالنسبة للأشكال غير المنتظمة على مستوى الإحداثيات: مجموع √((x₂-x₁)² + (y₂-y₁)²) لكل ضلع. التنفيذ يستخدم Math.PI وMath.hypot().
مثال
```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
مصطلحات ذات صلة
Metadata
Rasterization
Resolution
DPI
Color Space
Alpha Channel
Lossy Compression
Lossless Compression
EXIF
Color Profile
Bit Depth
Vector Graphics
Raster Graphics
Chroma Subsampling
HDR
WebP
Sprite Sheet
Thumbnail
Crop
Resize
Image Optimization
Image Histogram
Noise Reduction (Image)
Panorama Stitching
Image Segmentation
Object Detection
Feature Matching
Image Interpolation
Dithering (Image)
Alpha Compositing
Image Pyramid
Mipmap
Texture Atlas
Image Registration
Morphological Operations
IPTC
ICC Profile
Gamut Mapping
Tone Mapping
Chromatic Aberration
Vignetting
XMP
Color Grading (Image)
Focus Stacking
Content-Aware Fill
Batch Resize
Aspect Ratio
AVIF Sequence
Convolution
Canvas
Compression Artifact
DPI/PPI
Gamma
Histogram