အကောင်းဆုံးအခမဲ့ ရုပ်ပုံကို ဖြတ်တောက်ပါ
ပုံရိပ်ကို ပုံမှန်ပစ်ဆယ်ပုံမှန်အရွယ်အစားဖြင့် ဖြတ်တောက်ပါ။
လုပ်ဆောင်ပုံ
- တင်ရန်. ဖြတ်တောက်ဖို့ ရုပ်ပုံကို ရွေးပါ (40 MB အထိ)။
- ဧရိယာကို သတ်မှတ်ပါ. အပေါ်ဘက် ဘယ်ဘက်ထောင့်နဲ့ စိုက်ပျိုးထားတဲ့ မြေကြီးရဲ့ အချင်းနဲ့ အမြင့်အတွက် X နဲ့ Y ကို ထည့်ပါ။
- ဒေါင်းလုပ်လုပ်. ဖြတ်တောက်ထားတဲ့ ရုပ်ပုံကို မူလ ပုံစံအတိုင်း အလိုအလျောက် ကူးယူပါမယ်။
ကိရိယာအကြောင်း
သင့်ရဲ့ပုံရိပ်ကို pixels များဖြင့်သင်လိုချင်သောပုံသဏ္ဍာန်သို့တိကျစွာဖြတ်တောက်ပါ - အပေါ်ဘက်ညာဘက်ထောင့်နှင့်အကျယ်နှင့်အမြင့်၏ X နှင့် Y ကို။ မှန်းဆခြင်းထက်တိကျမှု: ခိုင်မာသော margin ကို trim လုပ်ရန်အသင့်တော်ဆုံး၊ တိကျသောအရွယ်အစားသို့ဘန်နာကိုဖြတ်တောက်ခြင်း၊ သို့မဟုတ်မလိုအပ်သောဘေးထွက်ကိုဖယ်ရှားခြင်း။ စိုက်ပျိုးခြင်းသည်မူရင်းဖိုင်ပုံစံကိုထိန်းသိမ်းထားသည်။ PNG သည် PNG နှင့် JPG သည် JPG ဖြင့်နေထိုင်ပြီး pixels များသည်မထိမိဘဲကူးယူထားသည်။
လူတွေဘာအတွက်သုံးပါသလဲ
- ပုံရိပ်ဖိုင်တစ်ခုရဲ့ ပြင်ပ သို့မဟုတ် အတွင်းပိုင်းကို ဖြတ်တောက်ပါ
- ရုပ်ပုံကို မှန်ကန်တဲ့ ဘန်နာ သို့မဟုတ် သေးငယ်တဲ့ ပုံ အရွယ် တစ်ခုဆီ ဖြတ်တောက်ပါ
- ဘေးမှာ မလိုလားတဲ့ အခြမ်း ဒါမှမဟုတ် အရာဝတ္ထုကို ထုတ်ပစ်ပါ
- မှန်ကန်တဲ့ အတိုင်းအတာများနဲ့ ဓာတ်ပုံကို စတုရန်း ပုံစံ ဖြတ်ပါ
ဖန်တီးသူ API
သင့်ရဲ့ကိုယ်ပိုင် code ကိုမှဤ tool ကို Automate. အောက်ပါ endpoint ကို POST ကိုတောင်းဆိုချက်ကိုပို့ပြီး web tool ကိုထုတ်လုပ်အလားတူရလဒ်ကိုရယူ. ဒါဟာ IP ကိုတစ်ဦးနှုန်း-limited ဖြစ်ပါတယ်နှင့် signup မရှိလိုအပ်ပါသည် - မြင့်မားသောကန့်သတ်များအတွက် API ကို key ကိုလာကြပြီ.
https://best.free/api/tools/image-crop/
| သတ်မှတ်ချက် | နမူနာ | လိုအပ်သည် | မှတ်စုများ |
|---|---|---|---|
file (ဖိုင်) |
photo.jpg |
အင်း | Any common image, ≤25 MB. |
x |
0 |
အင်း | Left edge in px. |
y |
0 |
အင်း | Top edge in px. |
width |
400 |
အင်း | Crop width in px. |
height |
300 |
အင်း | 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
တုံ့ပြန်မှု: The cropped image (same format).