Kepeszkozok API
Vegpontok kepkompressziohoz, atmeretezeeshez, konvertalshoz, forgatashoz, vagshoz, hattereltavolitashoz, felskalazshoz, arcelmosaashoz es vizjelzeeshez. Minden vegpont elfogadja a multipart/form-data formatumot es a feldolgozott kepet binaris fajlkent adja vissza.
Keptomorites
/api/image-compressTomoritse a kepet a fajlmeret csokkentese erdekeben a vizualis minoseg megorzese mellett. Tamogatja a JPEG, PNG es WebP formatumokat.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl (JPG, PNG, WebP) |
quality | number | Optional | Tomorites minosege, 10-100. Alapertelmezett: 80 |
targetSizeKB | number | Optional | Cel fajlmeret KB-ban. Felulirja a minoseget, ha be van allitva. |
keepMetadata | string | Optional | Allitsa "true"-ra az EXIF metaadatok megorzesehez |
Binary filecurl -X POST https://freefiletools.io/api/image-compress \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "quality=75" \
-o compressed.jpgKep atmeretezese
/api/image-resizeMeretezzen at egy kepet megadott meretekre vagy szazalekosan. Tamogatja a pixel mereteket es a szazalekos meretezest.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl |
width | number | Optional | Cel szelesseg pixelben |
height | number | Optional | Cel magassag pixelben |
percentage | number | Optional | Meretezesi szazalek (pl. 50 a fele merethez) |
fit | string | Optional | "inside" (keprarany megtartasa) vagy "fill" (nyujtas pontos meretekre) |
Binary file# Resize to specific width (height auto-calculated)
curl -X POST https://freefiletools.io/api/image-resize \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "width=800" \
-o resized.jpg
# Resize by percentage
curl -X POST https://freefiletools.io/api/image-resize \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "percentage=50" \
-o resized.jpgKep konvertalas
/api/image-convertKonvertaljon kepet formatumok kozott. Tamogatja a PNG, JPG, WebP es AVIF formatumokat.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl |
format | string | Required | Cel formatum: "png", "jpg", "webp" vagy "avif" |
quality | number | Optional | Kimeneti minoseg, 10-100 |
Binary filecurl -X POST https://freefiletools.io/api/image-convert \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "format=webp" \
-F "quality=85" \
-o photo.webpKep forgatas
/api/image-rotateForgassa el es/vagy tukrozze a kepet. Tamogatja a tetszoleges forgatasi szogeket es vizszintes/fuggoleges tukrozest.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl |
angle | number | Required | Forgatasi szog fokban (pl. 90, 180, 270) |
flipH | string | Optional | Allitsa "true"-ra a vizszintes tukrozeshez |
flipV | string | Optional | Allitsa "true"-ra a fuggoleges tukrozeshez |
Binary filecurl -X POST https://freefiletools.io/api/image-rotate \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "angle=90" \
-o rotated.jpgKep vagas
/api/image-cropVagja ki a kepet egy megadott teglalap alaku teruletre.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl |
x | number | Required | A vagasi teglalap bal eltolasa pixelben |
y | number | Required | A vagasi teglalap felso eltolasa pixelben |
width | number | Required | A vagasi teglalap szelessege pixelben |
height | number | Required | A vagasi teglalap magassaga pixelben |
Binary filecurl -X POST https://freefiletools.io/api/image-crop \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "x=100" \
-F "y=50" \
-F "width=500" \
-F "height=400" \
-o cropped.jpgHatter eltavolitasa
/api/remove-bgAutomatikusan tavolitsa el a hatteret egy keprol. Atlatszo hatteru PNG-t ad vissza.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl |
PNG kep atlatszo hatterrelcurl -X POST https://freefiletools.io/api/remove-bg \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o no-background.pngKep felskalazas
/api/image-upscaleNovelje a kep felbontasat AI segitsegevel a reszletek megorzese mellett.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl |
scale | number | Optional | Felskalazasi tenyezo: 2 vagy 4. Alapertelmezett: 2 |
Binary filecurl -X POST https://freefiletools.io/api/image-upscale \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "scale=4" \
-o upscaled.jpgArc elmosasa
/api/blur-faceAutomatikusan felismeri es elmossa az osszes arcot a kepen a maganszefera vedelmeben.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl |
Binary filecurl -X POST https://freefiletools.io/api/blur-face \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-o blurred.jpgKep vizjelzese
/api/watermark-imageSzoveges vizjelet adjon a kephez. Szabhassa testre a szoveget es a poziciot.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
file | File | Required | Kepfajl |
text | string | Required | Vizjel szoveg |
position | string | Optional | Pozicio: "center", "top-left", "top-right", "bottom-left", "bottom-right" |
Binary filecurl -X POST https://freefiletools.io/api/watermark-image \
-H "x-api-key: fft_your_api_key" \
-F "[email protected]" \
-F "text=Copyright 2024" \
-F "position=bottom-right" \
-o watermarked.jpg