<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ``` /** * 函數說明:修改文件夾下的所有文件名 * @param string $path 文件夾路徑 * 作者: panzhide * 日期: 2020/11/16 * 版本: 1.0 * @return array */ public function getDir($path) { if (is_dir($path)) { $dir = scandir($path); $arr = array(); foreach ($dir as $value) { $sub_path = $path . '\\' . $value; if ($value == '.' || $value == '..') { continue; } else if (is_dir($sub_path)) { $this->getDir($sub_path); } else { //$arr[] = $path . '\\' . $value; //直接修改文件名 $this->png2jpg($path . '\\' . $value); } } } } ``` ``` /** * 函數說明:jpg轉png * @param string $srcPathName 文件路徑 * @param string $delOri 是否刪除原圖片 * 作者: panzhide * 日期: 2020/11/16 * 版本: 1.0 * @return array */ public function png2jpg($srcPathName, $delOri = true) { $srcFile = $srcPathName; $srcFileExt = strtolower(trim(substr(strrchr($srcFile, '.'), 1))); if ($srcFileExt == 'png') { $dstFile = str_replace('.png', '.jpg', $srcPathName); $photoSize = GetImageSize($srcFile); $pw = $photoSize[0]; $ph = $photoSize[1]; $dstImage = ImageCreateTrueColor($pw, $ph); imagecolorallocate($dstImage, 255, 255, 255); //讀取圖片 $srcImage = ImageCreateFromPNG($srcFile); //合拼圖片 imagecopyresampled($dstImage, $srcImage, 0, 0, 0, 0, $pw, $ph, $pw, $ph); imagejpeg($dstImage, $dstFile, 90); if ($delOri) { unlink($srcFile); } imagedestroy($srcImage); } } ```
                  <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>

                              哎呀哎呀视频在线观看