gd

    -1熱度

    1回答

    我在運行時使用GD寫入圖像。該腳本正在努力製作預期的圖像和文字。但是,我收到了404錯誤。這些錯誤只記錄在我的服務器統計信息(Awstats)和我正在使用的瀏覽器的控制檯中。沒有錯誤頁面生成,圖像顯示正常。 我沒有存儲圖像,但直接輸出到瀏覽器。爲了使問題進一步複雜化,該腳本是以前項目的第二次迭代。早期的項目已經運行了一年多,並沒有造成任何錯誤。這兩個腳本的GD部分是相同的。這兩個腳本之間的唯一區別

    0熱度

    1回答

    我可以使用GD將給定顏色(RGB)與圖像資源(RGBA)的每個像素相乘?例如,如果給定的着色顏色是紅色(255,0,0),則圖像資源上的黑色像素應保持黑色(因爲255 * 0 = 0),較亮的像素應受該紅色着色因素影響更多。 我試圖 imagefilter($sprite, IMG_FILTER_COLORIZE, 255, 0, 0); 但只改變黑色像素。 NEGATE,IMG_FILTER

    0熱度

    2回答

    我嘗試在我的Solaris 10(x86)上構建libgd。在鏈接階段,有一個核心轉儲: libtool: link: gcc -std=gnu99 -shared -Wl,-z -Wl,text -Wl,-h -Wl,libgd.so.3 -o .libs/libgd.so.3.0.0 .libs/gd.o .libs/gd_color.o .libs/gd_color_map.o .libs/

    0熱度

    1回答

    /usr/bin/ld: skipping incompatible /usr/lib/libgd.so when searching for -lgd /usr/bin/ld: skipping incompatible /usr/lib/libgd.a when searching for -lgd /usr/bin/ld: cannot find -lgd collect2: ld r

    0熱度

    1回答

    我想將一個帶有白色框的PNG圖像轉換爲綠色框。 PNG的背景是透明的。 我已經寫出了代碼,但由於某種原因它不起作用。我查看並嘗試了很多東西,而且我看不出任何代碼有問題。 感謝 header("Content-type: image/png"); $image = imagecreatefrompng($filename); imagefilter($image, IMG_FILTER_COLO

    0熱度

    1回答

    我們正在使用GD,試圖創造一個產品定製工具,如下所示: 1: http://www.jared.com/en/jaredstore/custom%40jared/monogram-initial-necklace-available-a-z-732541000256533/100135/~/100135.100139.100601 和 2: http://www.jared.com/en/jare

    -1熱度

    1回答

    使用PHP和GD - 什麼是性能或時間之間更好地執行:服務器 輸出圖象 header('Content-Type: image/png'); imagepng($image); 或保存圖像(要麼本地服務器或Amazon S3) imagepng($image, 'new_image.png');

    0熱度

    2回答

    嗨,我有我的composer.json "require": { "gd": ">=2.0.28", "ext-gd": "*" } 當我做作曲家更新它提供了以下錯誤以下依賴... Your requirements could not be resolved to an installable set of packages. Problem 1 - The re

    0熱度

    1回答

    我一直在嘗試實施評級顯示程序,以通過在PHP文件中傳遞的星星形式進行評級。 下面的代碼爲rate.php: $filename= "rating.png"; $rating = $_GET['rating']; list($w, $h, $type, $attr) = getimagesize($filename); $src_im = imagecreatefrompng($filenam

    3熱度

    3回答

    爲文字添加到我使用下面的代碼從一個站點 <?php //Set the Content Type header('Content-type: image/jpeg'); // Create Image From Existing File $jpg_image = imagecreatefromjpeg('sunset.jpg'); // Al