<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之旅 廣告
                # 圖片處理 圖片處理組件用于完成圖片的縮略圖與水印處理。 其他產品也可以使用該組件,請登錄 [GITHUB](https://github.com/houdunwang/image) 查看源代碼與說明文檔。 [TOC] # 使用 ## 配置 圖片處理配置文件在 system/image.php 文件中,請根據需要修改配置,也可以使用 Config 組件動態修改配置。 ## 縮略圖 #### 語法 ``` Image::thumb($file, $outFile, $thumbWidth, $thumbHeight, $thunbType); $img 圖片 $outFile 縮略圖文件 $thumbWidth 縮略寬度 $thumbHeight 縮略高度 $thunbType 縮略方式: 1: 固定寬度 高度自增 2: 固定高度 寬度自增 3: 固定寬度 高度裁切 4: 固定高度 寬度裁切 5: 縮放最大邊 6: 縮略圖尺寸不變,自動裁切圖片 ``` #### 應用 ``` $obj->thumb('file.jpg','new.jpg',200,200,6); ``` ## 水印 #### 語法 ``` /** * 水印處理 * * @param string $img 原圖像 * @param string $outImg 加水印后的圖像 * @param string $pos 水印位置 * @param string $waterImg 水印圖片 * @param string $pct 透明度 * @param string $text 文字水印內容 * * @return bool */ public function water( $img, $outImg, $pos=null, $waterImg=null, $text=null, $pct=null ) ``` #### 應用 ``` Image::water('file.jpg', 'new.jpg'); ```
                  <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>

                              哎呀哎呀视频在线观看