image/png color issues on different browsers

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xiang
Forum Newbie
Posts: 2
Joined: Wed Jul 16, 2003 11:03 pm

image/png color issues on different browsers

Post by xiang »

I'm having problems with the color rendering of my php images.

I'm using $bgcolor = ImageColorAllocate ($im,96,64,49);

on IE mac, pc NS pc no problems - color output is correct

on NS mac and Safari (mac) - outputs different color (darker)

has anyone had this problem before?

This makes my image backgrounds darker than the webpage background.

This is probably not due to php and more so with the browsers.

I'd appreciate if anyone could shed some light on this,

cheers

xiang
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

question: do you have this problem with the "Navigators"? client side.

i think the problem is with the "navigators" not with the php, cause php works server side and it outputs the same for any type of Operating System / Navigator.

(AFAIK)
xiang
Forum Newbie
Posts: 2
Joined: Wed Jul 16, 2003 11:03 pm

Post by xiang »

yeah,

I'd agree, the browsers "navigators" rendering is the issue here, not the server side php.

Does anyone know more about how different browsers render png's on both mac and pc?

I've made the background color transparent and the images now look the same on all platforms/browsers.

cheers
Post Reply