လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> jpeg2wbmp

jpeg2wbmp

JPEG image file ကို WBMP image file သို့ပြောင်းပါ
အမည်:jpeg2wbmp
အမျိုးအစား:Image processing gd
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:JPEG ပုံရိပ်ကို WBMP ပုံသို့ပြောင်းပါ

function name: Jpeg2WBMP ()

သက်ဆိုင်သောဗားရှင်း - PHP 4> = = 4.0.5, PHP 5, PHP 7

Function ဖော်ပြချက် - JPEG ပုံရိပ်ကို WBMP ပုံသို့ပြောင်းပါ

အသုံးပြုမှု:

 bool jpeg2wbmp(string $jpegname, string $wbmpname, int $dest_height, int $dest_width, int $threshold)

Parametermer

  • $jpegname : JPEG image file ၏လမ်းကြောင်းနှင့်ဖိုင်အမည်။
  • $wbmpname : ပြောင်းလဲထားသော WBMP image file ၏လမ်းကြောင်းနှင့်ဖိုင်အမည်။
  • $dest_height : ပြောင်းလဲ WBMP ပုံရိပ်၏အမြင့်။
  • $dest_width : ပြောင်းလဲထားသော WBMP ပုံရိပ်၏ width ။
  • $threshold : optional parameter သည် binarized ပုံများအတွက်အသုံးပြုသောတံခါးခုံကိုညွှန်ပြသည်။ ပုံမှန်တန်ဖိုး 80 ဖြစ်ပါတယ်။

Value ကိုပြန်သွားပါ

  • WBMP ပုံကိုအောင်မြင်စွာပြောင်းလဲပြီးသိမ်းဆည်းထားလျှင် Rext Reward ။
  • အမှားတစ်ခုဖြစ်ပေါ်ပါကမှားယွင်းစွာပြန်လာသည်။

ဥပမာ -

 $jpegname = 'path/to/image.jpg'; $wbmpname = 'path/to/image.wbmp'; $dest_height = 200; $dest_width = 200; $threshold = 80; if (jpeg2wbmp($jpegname, $wbmpname, $dest_height, $dest_width, $threshold)) { echo 'JPEG image converted to WBMP successfully.'; } else { echo 'Failed to convert JPEG image to WBMP.'; }

အထက်ပါဥပမာသည်သတ်မှတ်ထားသော JPEG ပုံရိပ်ကို 200x200 pixels ၏ wbmp image သို့ပြောင်းသည်။ ပြောင်းလဲခြင်းသည်အောင်မြင်စွာအောင်မြင်စွာအောင်မြင်စွာပြောင်းလဲခြင်း, ဒီလိုမှမဟုတ်ရင် output ကို "JPEG ပုံရိပ်ကို WBMP သို့ပြောင်းရန်ပျက်ကွက်ခဲ့သည်။ "

သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • ဖိုင်တစ်ခုသို့မဟုတ် URL မှရုပ်ပုံအသစ်ကိုဖန်တီးပါ imagecreatefromxpm

    imagecreatefromxpm

    ဖိုင်တစ်ခုသို့မဟုတ်U
  • browser သို့မဟုတ် file မှ output ပုံများ imagejpeg

    imagejpeg

    browserသို့မဟုတ်file
  • ရရှိနိုင်သည့် modes များထဲမှတစ်ခုကို အသုံးပြု. ပုံတစ်ပုံကိုအလိုအလျောက်သီးနှံ imagecropauto

    imagecropauto

    ရရှိနိုင်သည့်modesမျ
  • သတ်မှတ်ထားသော palette အညွှန်းကိန်း၏အရောင်ကိုသတ်မှတ် imagecolorset

    imagecolorset

    သတ်မှတ်ထားသောpalette
  • စစ်မှန်သောအရောင်ပုံရိပ်များကို palette ပုံရိပ်များကိုပြောင်းပါ imagetruecolortopalette

    imagetruecolortopalette

    စစ်မှန်သောအရောင်ပုံရ
  • ပုံရိပ်၏အရွယ်အစားကိုရယူပါ getimagesize

    getimagesize

    ပုံရိပ်၏အရွယ်အစားကို
  • PHP 7.3.0 ကတည်းကဒီ function ကို browser ကို output ကိုဖျက်လိုက်ပြီး PHP 8.0.0 မှာဖျက်ပစ်လိုက်သည်။ ကျေးဇူးပြုပြီး imagewbmp ကိုသုံးပါ image2wbmp

    image2wbmp

    PHP7.3.0ကတည်းကဒီfunc
  • GDS ပုံရိပ်များသို့ gamma ပြင်ဆင်ချက်လျှောက်ထားခြင်း imagegammacorrect

    imagegammacorrect

    GDSပုံရိပ်များသို့ga
လူကြိုက်များသော ဆောင်းပါးများ