<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # The ThinkPHP5 Image Package [![Build Status](https://img.shields.io/travis/top-think/think-image.svg)](https://travis-ci.org/top-think/think-image) [![Coverage Status](https://img.shields.io/codecov/c/github/top-think/think-image.svg)](https://codecov.io/github/top-think/think-image) [![Downloads](https://img.shields.io/github/downloads/top-think/think-image/total.svg)](https://github.com/top-think/think-image/releases) [![Releases](https://img.shields.io/github/release/top-think/think-image.svg)](https://github.com/top-think/think-image/releases/latest) [![Releases Downloads](https://img.shields.io/github/downloads/top-think/think-image/latest/total.svg)](https://github.com/top-think/think-image/releases/latest) [![Packagist Status](https://img.shields.io/packagist/v/top-think/think-image.svg)](https://packagist.org/packages/topthink/think-image) [![Packagist Downloads](https://img.shields.io/packagist/dt/top-think/think-image.svg)](https://packagist.org/packages/topthink/think-image) ## 安裝 > composer require topthink/think-image ## 使用 ~~~ $image = \think\Image::open('./image.jpg'); 或者 $image = \think\Image::open(request()->file('image')); $image->crop(...) ->thumb(...) ->water(...) ->text(....) ->save(..); ~~~ /** * 保存圖像 * @param string $pathname 圖像保存路徑名稱 * @param null|string $type 圖像類型 * @param int $quality 圖像質量 * @param bool $interlace 是否對JPEG類型圖像設置隔行掃描 * @return $this */ save($pathname, $type = null, $quality = 80, $interlace = true) /** * 返回圖像寬度 * @return int 圖像寬度 */ width() /** * 返回圖像高度 * @return int 圖像高度 */ height() /** * 返回圖像類型 * @return string 圖像類型 */ type() /** * 返回圖像MIME類型 * @return string 圖像MIME類型 */ mime() /** * 返回圖像尺寸數組 0 - 圖像寬度,1 - 圖像高度 * @return array 圖像尺寸 */ size() /** * 旋轉圖像 * @param int $degrees 順時針旋轉的度數 * @return $this */ rotate($degrees = 90) /** * 翻轉圖像 * @param integer $direction 翻轉軸,X或者Y * @return $this */ flip($direction = self::FLIP_X) /** * 裁剪圖像 * * @param integer $w 裁剪區域寬度 * @param integer $h 裁剪區域高度 * @param integer $x 裁剪區域x坐標 * @param integer $y 裁剪區域y坐標 * @param integer $width 圖像保存寬度 * @param integer $height 圖像保存高度 * * @return $this */ crop($w, $h, $x = 0, $y = 0, $width = null, $height = null) * 生成縮略圖 * * @param integer $width 縮略圖最大寬度 * @param integer $height 縮略圖最大高度 * @param int $type 縮略圖裁剪類型 * * @return $this */ thumb($width, $height, $type = self::THUMB_SCALING) /** * 添加水印 * * @param string $source 水印圖片路徑 * @param int $locate 水印位置 * @param int $alpha 透明度 * @return $this */ water($source, $locate = self::WATER_SOUTHEAST, $alpha = 100) /** * 圖像添加文字 * * @param string $text 添加的文字 * @param string $font 字體路徑 * @param integer $size 字號 * @param string $color 文字顏色 * @param int $locate 文字寫入位置 * @param integer $offset 文字相對當前位置的偏移量 * @param integer $angle 文字傾斜角度 * * @return $this * @throws ImageException */ text($text, $font, $size, $color = '#00000000',$locate = self::WATER_SOUTHEAST, $offset = 0, $angle = 0) /** * 切換到GIF的下一幀并保存當前幀 */ protected function gifNext()
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看