I-Calculator ye-Aspect Ratio
Guqula ubukhulu be-width ne-height ngenkathi ugcina i-aspect ratio efanayo.
Iziphetho zivuselelwa uma ubhala.
Malunga nale khadi
An aspect ratio calculator keeps an image, video frame or screen in proportion when you resize it, so nothing ends up stretched or squashed. Enter the original width and height and it reduces them to the simplest whole-number ratio (like 16:9) by dividing both by their greatest common divisor. Type a new width and it returns the height that preserves the shape; type a new height instead and it returns the matching width.
Worked example: scaling a 1920×1080 image down to a 1280 width gives a height of 1280 × 1080 ÷ 1920 = 720, keeping the exact 16:9 shape. The tool also reports the ratio as a decimal (1920 ÷ 1080 = 1.778) and the original pixel count in megapixels (1920 × 1080 ÷ 1,000,000 ≈ 2.07 MP).
Photographers, video editors and web designers use it to fit an image into a fixed frame, work out crop dimensions, or check that a monitor and its content share the same ratio before letterboxing appears.
Imibuzo ebuzwa kaningi
Ngigcina kanjani isithombe ngokuhambisana uma ngishintsha ubukhulu?
Yabelana ububanzi bokuqala ngephakama bokuqala ukuze uthole isilinganiso, bese uphinda ububanzi bakho obusha nge (ubude bokuqala ÷ ubude bokuqala). Ukukala 1920×1080 ngezansi ku-1280 ububanzi kunikeza ubude be-1280 × 1080 ÷ 1920 = 720.
Yini okusho isilinganiso sesimo sesithombe njenge 16:9?
1920:1080 zombili zihlukaniswe nge 120 ukuze zinikeze i 16:9, okusho ukuthi amayunithi angama-16 we-width ngayinye ye-9 ye-height — isilinganiso se-HD video neminye imiboniso.
Yini isilinganiso esijwayelekile kakhulu?
16:9 yisimo esijwayelekile se-HD ne-4K video kanye neminye imiboniso nefoni ezindaweni ezingaphandle; 4:3 yi-TV edala ne-tablets eziningi; 3:2 ivame ukutholakala ezithombeni ne-DSLR sensors; 1:1 i square (iposi lomphakathi); kanye ne-21:9 i ultrawide noma cinematic. Ukungenisa i-pixel dimensions ibonisa ukuthi iyiphi oyinayo.
Ngiyithola kanjani i-aspect ratio yesithombe?
Ngeza ububanzi be-pixel nephakama njengezilinganiso zokuqala - i-calculator ihlukanisa zombili nge-divisor ejwayelekile enkulu ukuze inike isilinganiso esilula. Umzekelo, 3000×2000 ikhuphula ibe yi-3:2.
Yini ezoba uma ngishintsha ubukhulu ngaphandle kokugcina isilinganiso?
Isithombe sishintsha - amagobolondo ashintsha abe ngama-ovals futhi ama-faces ashesha. Ukufaka okuqukethwe kwifreyimu ngesilinganiso esihlukile kufaka izibambo ezimnyama (ukubhala phezulu nophansi, noma ukubhala phezulu naphansi, noma ukubhala phezulu naphansi) ukuze isilinganiso sakuqala sigcinwe.
Yini okushoyo isilinganiso njengenani elilinganayo?
Ibanga elihlukaniswe ubude. 16:9 lingu-1.778 futhi 4:3 lingu-1.333 — ibanga eliphakeme lisho ibanga elibanzi, ifreyimu ebanzi. Kuhle uma i-spec inikezelwa njengenani elilodwa ngaphezu kokulinganisa kwe-colon.
API — sebenzisa le calculator kusuka kukhodi
Nquma le calculator njenge JSON evulekile yendawo yokuqeda - akukho isithonjana esidingekayo. Thumela amaxabiso endawo ngezansi njengezilungiselelo zombuzo noma i-JSON. Noma yini ongayishiya isebenzisa iphutha elifanayo elifakwe ngaphambili lekhasi; ipharamitha engaziwa yi-400, ayikho i-zero emnyama. Funda i-API egcwele →
Ingxenye yendawo
GET https://calculator.free/api/v1/aspect-ratio/
curl
curl "https://calculator.free/api/v1/aspect-ratio/?ow=1920&oh=1080&nw=1280"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/aspect-ratio/?" + new URLSearchParams({
"ow": "1920",
"oh": "1080",
"nw": "1280"
}));
const data = await r.json();
console.log(data.results);
Izibalo ziyisilinganiso esisetshenziswa ukuqondisa kuphela, hhayi ukucebisa ngezimali, ukwelashwa noma ukukhokha.