Download the PHP package jsnlib/uploadimagebase64 without Composer
On this page you can find all versions of the php package jsnlib/uploadimagebase64. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package uploadimagebase64
jsnlib-uploadimagebase64
將 base64 的圖檔編碼,進行上傳或壓縮圖片
基本用法
``
縮圖用法
需要先將 base64編碼的圖檔傳到伺服器,然後將這張原圖進行縮圖。 ``
API
setting(array $param): object
設定
- base64 圖片的 base64 編碼,注意不包含前方資訊。如 "data:image/jpeg;base64,/9j/4gv4SUNDX1BST0ZJT......",請刪除 "data:image/jpeg;base64," 這段標記。
- filename 上傳後想要命名的圖檔名稱
- path 儲存的路徑
- mode 檔案權限,如 '0777'
save(): object
儲存
result(): array
取得上傳結果
resize(int $width, int $height, int $quantity, string $save_dir, string $newname = NULL): object
- 這是繼承 Jsnlib\Copy\Urlimg::resize(),可以參考 jsnlib\copy
copy($mode = 0775): object
- 開始執行複製,參考 jsnlib\copy
All versions of uploadimagebase64 with dependencies
PHP Build Version
Package Version
The package jsnlib/uploadimagebase64 contains the following files
Loading the files please wait ....