Fit dimensions into a box
API · /aspectratio-api
Aspect Ratio API
Aspect-ratio and resize maths on plain dimensions — no image upload needed. The ratio endpoint reduces a width×height to its simplest integer ratio (1920×1080 → 16:9), its decimal value and a common name. The resize endpoint scales a dimension while preserving the ratio: give a new width or a new height and get the other side. The fit endpoint fits a source size into a target box using contain (letterbox) or cover (crop), returning the resulting size, the scale factor and the centering offset. Perfect for responsive layouts and CSS aspect-ratio, video and thumbnail framing, image-grid planning and print sizing. Pure local computation — it works on numbers only and never touches image files. Live, nothing stored. 4 endpoints. Distinct from image processing/resizing (which operates on actual files) and from geometry of shapes.
API salute
salutare- Tempo di attività
- 100.00%
- Sondaggi del server · 24 ore su 24
- Latenza media
- 87 ms
- Sondaggi del server · 24 ore su 24
- Abbonati
- 4,198
- attiva
- Chiamate totali
- 60
- ultimi 7 giorni
Prezzi
Scegli un livello: fatturazione mensile, annullamento in qualsiasi momento.
Free
Gratis
- 840 chiamate/mese
- 2 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 840 calls/month
- 2 req/sec
- Ratio + resize + fit
- No credit card
Starter
€1.50 /mese
- 6,900 chiamate/mese
- 8 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 6.9k calls/month
- 8 req/sec
- Contain + cover + offsets
- Email support
Pro
€19.80 /mese
- 129,000 chiamate/mese
- 20 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 129k calls/month
- 20 req/sec
- Layout / media pipelines
- Priority support
Mega
€55.80 /mese
- 665,000 chiamate/mese
- 50 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 665k calls/month
- 50 req/sec
- Platform scale
- Dedicated SLA
Costruito da
Correlato APIs
Altro APIs con tag sovrapposti.
Image API
Inspect image metadata (dimensions, format, size, colour space, transparency) and resize or convert images between JPEG, PNG, WebP and AVIF straight from a URL. Perfect for thumbnails, format optimisation and on-the-fly image transforms.
api.oanor.com/image-api
Keyboard Layout API
Re-mapeia texto entre layouts de teclado — a correção para texto digitado com o teclado configurado no layout errado. O endpoint remap recebe texto, um layout de origem e um layout de destino, e reescreve cada caractere para aquele produzido pela mesma tecla física no outro layout. Assim, texto digitado acidentalmente em um teclado configurado para Dvorak enquanto você queria QWERTY (ou o inverso) é recuperado exatamente, e como o mapeamento preserva a posição, ele faz ida e volta perfeitamente. Suporta QWERTY (US), Dvorak e Colemak, incluindo os símbolos shiftados, e deixa caracteres que não estão em uma tecla remapeável (espaços e acentos) intocados. O endpoint layouts retorna o mapa completo de teclas para cada layout. Tudo é computado localmente e deterministicamente, então é instantâneo e privado. Ideal para corrigir digitação no layout errado, construir editores de texto e ferramentas IME, auxílios de aprendizado de layout e pesquisa entre layouts. Computação local pura — sem chave, sem serviço de terceiros, instantâneo. Ao vivo, nada armazenado. 3 endpoints. Isso remapeia entre layouts de teclado; para cifras clássicas (César, ROT13, Morse) use uma API de cifra.
api.oanor.com/keyboardlayout-api
Bitrate & Transfer API
Media, file-size and data-transfer maths as an API. The file-size endpoint relates bitrate, duration and file size: give any two and it computes the third — so you can find the size of a video at a given bitrate and length, the bitrate of a file of known size and length, or how long a file will play. The transfer-time endpoint computes how long a file takes to download or upload over a given bandwidth (with optional protocol overhead), or the bandwidth needed to move it within a target time. The storage endpoint works out how many hours of media at a bitrate, or how many items of a given size, fit in a storage capacity. Bitrates use decimal units (kbps, Mbps, Gbps) and sizes are reported in both decimal (KB/MB/GB/TB) and binary (KiB/MiB/GiB/TiB). Everything is computed locally and deterministically, so it is instant and private. Ideal for video and audio encoding, streaming and CDN planning, storage and backup sizing, and download-time estimates. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. This is bitrate and transfer maths; for plain byte-unit conversion use a bytes API.
api.oanor.com/bitrate-api
Subtitle API
Trabalhe com arquivos de legenda — analise, converta e ressincronize, tudo localmente. O endpoint de análise lê texto SubRip (.srt) ou WebVTT (.vtt) em marcações limpas e estruturadas — índice, início, fim (como HH:MM:SS,mmm e milissegundos), duração e o texto da marcação (multilinha preservado) — detectando automaticamente qual formato você enviou. O endpoint de conversão converte entre SRT e WebVTT, acertando os detalhes: o separador de timestamp (vírgula para SRT, ponto para WebVTT), adicionando ou removendo o cabeçalho WEBVTT e renumerando as marcações. O endpoint de deslocamento move cada timestamp por um offset em milissegundos, positivo ou negativo, para corrigir uma faixa que está adiantada ou atrasada, limitando a zero para que nada fique negativo. Tudo é calculado local e deterministicamente, então é instantâneo e privado — seus arquivos de mídia nunca saem da requisição. Ideal para pipelines de vídeo e streaming, editores e players de legenda, fluxos de localização e tradução, acessibilidade e correção de legendas dessincronizadas. Cálculo local puro — sem chave, sem serviço de terceiros, instantâneo. Ao vivo, nada armazenado. 4 endpoints. Isto lida com arquivos de legenda; para timecode de vídeo SMPTE (HH:MM:SS:FF) use uma API de timecode.
api.oanor.com/subtitle-api
Domande frequenti
Risposte rapide su prezzi, quote e integrazione.
Come ottengo una chiave API per Aspect Ratio API?
Qual è il limite di velocità di Aspect Ratio API?
Quanto costa Aspect Ratio API?
Posso cancellare l'abbonamento in qualsiasi momento?
Aspect Ratio API è conforme al GDPR?
Scegli un endpoint dall'elenco a sinistra per visualizzarne i dettagli e provarlo.
Frammenti di codice
Iscriviti per ottenere una chiave API, quindi chiama qualsiasi percorso sotto il tuo slug.
curl https://api.oanor.com/aspectratio-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/aspectratio-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/aspectratio-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/aspectratio-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Valutazioni
Accedi per votare.
Nessuna recensione ancora.
Discussione
Fai domande, condividi consigli, ricevi risposte dal provider e dagli altri sviluppatori. Pubblico — chiunque può leggere.
Accedi per scrivere o rispondere.
AccediNuova discussione
·
-
Risposta del provider
🔒 Discussione bloccata — non si può più rispondere.
-
·
- Nessuna discussione — inizia tu.
Supporto
Supporto privato 1:1 con il provider — fatturazione, integrazione, account. Solo tu e il team del provider vedete questi thread.
Accedi per aprire un ticket di supporto.
AccediApri nuovo ticket
Descrivi cosa ti serve. Il team del provider riceve un'email e risponde sulla pagina del ticket.
-
·
Urgente - Nessun ticket per questa API.