![]() |
|||
PHP
IT Tags
photo gallery XHTML local server local server check domain Simplexml Parser PHP and FLash multiple file uplo Xampp SimpleXML UPDATE sdf Mobile site ajax indexing solr connection to MYSQL server shutdown Remove Duplicate objects control panel include Combo box Solr XML magento ecommerce associative arrays my_thread_global_end mysql server Overlapping Layers php mail Stop Script |
.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! |
