Spring Website Background Gradient

Spring Website Background Gradient

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

Spring Website Background Gradient

Post by el_matarife »

Image
Does the Spring website look like that for anyone else? (Arrows added for emphasis on the problem) The background gradient breaks a little down the page and the color is wrong. I'm on Firefox 3.5.3 on XP with 32 bit color.

It seems to work in Opera 10 and Chrome 3.0.195.21:
Image

Image
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Spring Website Background Gradient

Post by Satirik »

same config ... nothing like that, looks like the old IE displaying png with bad colors
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring Website Background Gradient

Post by aegis »

yeah, I've had that too in firefox... not sure why it is...

downloading the background in firefox and displaying in a normal image editor also shows the same problem, but downloading it in chrome doesn't.
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: Spring Website Background Gradient

Post by Evil4Zerggin »

Same config but don't have that problem.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Spring Website Background Gradient

Post by Forboding Angel »

It's because of the graphics mode in firefox. Somehow yours got changed, so it is using the embedded color profiles in the images which generally results in extreme fail.
Maek Fixie wrote: Go to address bar and type:

about:config

Type: gfx into the filter box

Click on gfx.color_management.mode

Change the 2 to 0

Restart Firefox 3.5 and the color management is now turned off.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring Website Background Gradient

Post by aegis »

so it's probably because that image has a bad color profile?
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

Re: Spring Website Background Gradient

Post by el_matarife »

Forboding Angel wrote:It's because of the graphics mode in firefox. Somehow yours got changed, so it is using the embedded color profiles in the images which generally results in extreme fail.
I thought Firefox 3.5 used the ICM color profiles by default. Anyway, if the background image has a busted color profile it should probably be fixed.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Spring Website Background Gradient

Post by Forboding Angel »

Basically, firefox 3.5.1 and previous doesn't support anything above ICC v2 (Windows XP). in firefox 3.5.2 support for ICC v4 (Vista and Win7) was added.

Basically, either update FF to the bleeding edge, or just do what everyone else does and turn color management off.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Spring Website Background Gradient

Post by AF »

Remove the colour profile from the jpeg, that simple
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Spring Website Background Gradient

Post by jK »

Replaced it with a png. It's is even smaller.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Spring Website Background Gradient

Post by AF »

fixed here, ctrl+f5 for those still borked
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Spring Website Background Gradient

Post by TradeMark »

this code should fix it for IE etc:

Code: Select all

<?php

header("Content-type: image/png");
readfile("background.png");

?>
save as "background.php" and change that as the background image.

then the PNG colors wont fuck up anymore, not 100% sure though.. but ive noticed it makes difference in color rendering before o.O

try?
jK wrote:Replaced it with a png. It's is even smaller.
you should make it 1 pixel wide too then.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Spring Website Background Gradient

Post by Forboding Angel »

jK wrote:Replaced it with a png. It's is even smaller.
You messed up the gradient transition a little bit. Try guassian blurring the shit out of it.

Edit: no you didn't, nevermind.

AHAHAHAA wtf? lol

Why is the background using a fixed size that isn't the size of the actual image? lolfail
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring Website Background Gradient

Post by aegis »

TradeMark wrote:this code should fix it for IE etc:

Code: Select all

<?php

header("Content-type: image/png");
readfile("background.png");

?>
save as "background.php" and change that as the background image.

then the PNG colors wont fuck up anymore, not 100% sure though.. but ive noticed it makes difference in color rendering before o.O

try?
jK wrote:Replaced it with a png. It's is even smaller.
you should make it 1 pixel wide too then.
it'd be cleaner to fix your server's mime types... and wouldn't bottleneck your entire site through php...
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Spring Website Background Gradient

Post by TradeMark »

aegis wrote:it'd be cleaner to fix your server's mime types... and wouldn't bottleneck your entire site through php...
that happens only with IE, so its not server side problem.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Spring Website Background Gradient

Post by AF »

IE is not flexible enough to rely on the data being sent, whereas firefox safari etc realise that tis actually a png and display ti accordingly
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring Website Background Gradient

Post by aegis »

TradeMark wrote:
aegis wrote:it'd be cleaner to fix your server's mime types... and wouldn't bottleneck your entire site through php...
that happens only with IE, so its not server side problem.

Code: Select all

header("Content-type: image/png");
proper mime type handling will send this header when the image is downloaded directly.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Spring Website Background Gradient

Post by TradeMark »

i dont know do you need to add that header, just added it for fun
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Spring Website Background Gradient

Post by aegis »

other than headers, it's sending the file EXACTLY like the web server (read file bytes, send file bytes to browser)

http://www-01.ibm.com/support/docview.w ... -8&lang=en

also, the problem was happening in *firefox* and we already found a solution.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Spring Website Background Gradient

Post by TradeMark »

aegis wrote:other than headers, it's sending the file EXACTLY like the web server (read file bytes, send file bytes to browser)

http://www-01.ibm.com/support/docview.w ... -8&lang=en
thats not the problem, look below.
aegis wrote:and we already found a solution.
well it still doesnt look good on IE because the PNG images are darker on IE, dunno why, but when you change the extension to .php, the colors looks correct again.
Post Reply

Return to “General Discussion”