![]() |
|||
PHP
IT Tags
check domain Solr XML Overlapping Layers Remove Duplicate XHTML Xampp indexing solr local server include objects Combo box PHP and FLash multiple file uplo Stop Script UPDATE sdf ajax php mail mysql server Mobile site Simplexml Parser magento ecommerce connection to MYSQL local server SimpleXML my_thread_global_end photo gallery control panel associative arrays server shutdown |
.gif with transparent background issue
By: rekha singh | 10 Mar 2010 3:58 pm
Hi All Found that PHP does not deal well with gif images that have a transparent background. Played around a bit with code and figured out how to do it. Works just fine on the web server in the basement. Problem is that when I upload the code to the production server in the data center the gif's are not working proper and show up as a black image. If you look hard, you can see an outline of what is in the pix ... barely .. so I know that the correct image being used AND you can create a URL using that image and it comes up correctly in the browser ( both IE and FireFox ). Both Servers are linux Basement: Data Center: I temporarily enabled E_ALL on the production box, but got no PHP errors. I wrote a 'test' script that shows more information while exercising the GD functions that are needed for transparency and the output is the same on both boxes. Still no errors. I have trouble with Apache or FC7 causing this as that box has an uptime of almost 800 days and is rock solid in all other aspects. This almost has to be a PHP/GD problem but I don't know where to look now. Ideas anyone? I did a temporary fix and made the .gif a .jpg with the correct background color; pain in the butt if the background changes ... but Thanks for listening to my problem! |
