<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之旅 廣告
                php的文檔介紹可以結合imagecreatefromwebp和imagejpeg兩個方法來將webp轉為jpeg,如下: ``` <?php // 加載 WebP 文件 $im = imagecreatefromwebp('./example.webp'); // 以 100% 的質量轉換成 jpeg 格式 imagejpeg($im, './example.jpeg', 100); imagedestroy($im); ?> ``` 但是這樣轉換得到的jpeg圖片顏色有問題,整體顏色黃色偏多了,于是放棄這種辦法。 打算用imagemagick來處理,于是安裝imagemagick. 從官網下載:http://www.imagemagick.org/download/ImageMagick.tar.gz ``` tar zxvf ImageMagick.tar.gz cd ImageMagick-6.9.1-10 ./configure --prefix=/usr/local/ImageMagick make make install ``` 安裝完成后,運行命令:/usr/local/ImageMagick/bin/convert test.webp test.jpeg 提示: 發現找不到dwebp命令,這個dwebp是google提供的處理webp的libwebp庫里的,于是安裝libwebp。 yum search libwebp yum install libwebp-devel.x86_64 安裝完后發現還是不能運行dwebp命令,再把libwebp-tools.x86_64安裝了一下 yum install libwebp-tools.x86_64 安裝完成后,imagemagick就可以成功將webp轉為jpeg了,而且在顏色上沒有改變,圖像也清晰。 其實,可以直接用dwebp命令:dwebp test.webp -o test.jpeg 但是這樣得到的jpeg圖片較大,幾百K,用imagemagick得到的圖片只有幾十K,所以最終還是選擇imagemagick轉換webp圖片了。 php用exec調用imagemagick命令既可以轉換。
                  <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>

                              哎呀哎呀视频在线观看