Gentlemen,
Ultimately, I am in the process of updating all my website scripts to upgrade to PHP 8.2. When I run Ken's updated PHP 8.2 thermometer script, I am viewing an image white background:
https://csraweather.orgI scrolled down to between Lines 662 and 682 (approx.).
// these settings are SPECIFICALLY for the thermometer-blank.png image background
$minX = 20; // left
$maxX = 24; // right
$minY = 20; // top
$maxY = 140;// bottom
$width = imagesx($image);
$height = imagesy($image);
$font = 1;
$bg = imagecolorallocate($image,153,255,255 );
$tx = imagecolorallocate($image,32,42,68);
$blue = imagecolorallocate($image,0,0,255);
$red = imagecolorallocate($image,255,0,0);
if ($invertColor) {
$tx = imagecolorallocate($image,255,255,255);
$blue = imagecolorallocate($image,0,192,255);
$red = imagecolorallocate($image,255,32,32);
}
On Line 674 (approx), I changed the thermometer image background color to my webpage background, but I still am viewing the image white background. Could someone please direct me to a resolution? Thank You in advance!