Pi bon lib Retire imaj
Kouvri yon imaj nan yon rektang pixel egzak, kenbe fòma orijinal li - gratis ak san filigran.
Kijan li travay
- Envoke. Chwazi imaj pou kouvri (jouk 25 MB).
- Define zòn nan. Entre X ak Y pou kwen anwo a gòch ak lajè ak wotè pou kouvri a, tout sa yo an pixels.
- Enstale. imaj la kouvri telechaje otomatikman nan fòma orijinal li.
Atik sa a
Kroche yon imaj pou li rive nan rektanglè ou vle a pa antre zòn nan pixels — X ak Y nan kwen anwo a gòch ak lajè ak wotè. Li pi presi pase yon bagay ou ka fè yon dedomajman: li ideyal pou tranpe yon marge fiks, tranpe yon bannè pou li rive nan yon gwosè egzat, oswa retire yon bò ki pa vle. Krochman an kenbe fòma dosye orijinèl la, se poutèt sa yon PNG rete yon PNG ak yon JPG rete yon JPG, epi piksèl yo kopi san yo pa touche pou sa pa gen anyen ki re-kompression. Pa gen watermark, pa gen enskripsyon, processé nan memwa ak dechèp.
Ki sa moun yo itilize li pou
- Troubler un marge fixe ou bordure hors d'un écran
- Trouble an imaj pou yon bannè egzat oswa gwosè thumbnail
- Fòmilè
- Kwòch yon foto pou li gen gwosè egzat
Developer API
Automate zouti sa a soti nan kòd ou. Envoye yon demann POST nan pwent fen anba a epi jwenn menm rezilta a ke zouti entènèt la pwodwi. Li se rate-limited pa IP ak pa bezwen okenn enskripsyon - kle API pou limit ki pi wo yo ap vini.
https://best.free/api/tools/image-crop/
| Paramèt | Egzanp | Required | Notifikasyon |
|---|---|---|---|
file (Fichièr) |
photo.jpg |
Wi | Any common image, ≤25 MB. |
x |
0 |
Wi | Left edge in px. |
y |
0 |
Wi | Top edge in px. |
width |
400 |
Wi | Crop width in px. |
height |
300 |
Wi | Crop height in px. |
curl -X POST https://best.free/api/tools/image-crop/ \
-F 'file=@photo.jpg' \
-F 'x=0' \
-F 'y=0' \
-F 'width=400' \
-F 'height=300' \
-o cropped.png
import requests
files = {"file": open("photo.jpg", "rb")}
data = {"x": 0, "y": 0, "width": 400, "height": 300}
r = requests.post("https://best.free/api/tools/image-crop/", files=files, data=data)
with open("cropped.png", "wb") as out:
out.write(r.content)
const fd = new FormData();
fd.append("file", fileInput.files[0]);
fd.append("x", 0);
fd.append("y", 0);
fd.append("width", 400);
fd.append("height", 300);
const r = await fetch("https://best.free/api/tools/image-crop/", { method: "POST", body: fd });
const blob = await r.blob(); // the cropped.png
Reponn: The cropped image (same format).