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
مصطلحات ذات صلة
Alpha Channel
Aspect Ratio
Chroma Subsampling
Chromatic Aberration
Color Grading (Image)
Compression Artifact
Dithering (Image)
Image Histogram
Image Registration
Metadata
Resolution
Alpha Compositing
Image Pyramid
Rasterization
Bit Depth
Color Space
Lossy Compression
HDR
Raster Graphics
Vector Graphics
Sprite Sheet
Thumbnail
WebP
Crop
Image Optimization
Resize
ICC Profile
Image Interpolation
Canvas
Convolution
DPI/PPI
Gamma
Histogram
Noise Reduction (Image)
Panorama Stitching
Feature Matching
Image Segmentation
Object Detection
Mipmap
Morphological Operations
Texture Atlas
Gamut Mapping
IPTC
Tone Mapping
Focus Stacking
Vignetting
XMP
Batch Resize
Content-Aware Fill
Lossless Compression
AVIF Sequence
EXIF
Color Profile
DPI