Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Gradient Background

This is a discussion on Gradient Background, within the Graphics section. This forum and the thread "Gradient Background" are both part of the Designing Your Website category.

 
Reply to this topicStart new topic
> Gradient Background, Poor image quality
Antti
post Feb 18 2008, 02:49 AM
Post #1


Rapid Squeezer
Group Icon

Posts: 308
Joined: 15-February 08
From: Finland


This is a bit OT so move this if you like but I have a problem with gradient backgrounds. I don't get them smooth at all. They are all fine in Photoshop but when I export them to web the gradient is jagged. What settings/method do you people use when you save the background gradient to jpg?


--------------------
Go to the top of the page
 
+Quote Post
Rakuli
post Feb 18 2008, 02:56 AM
Post #2


Squeeze Machine
Group Icon

Posts: 766
Joined: 13-February 08
From: Catching the squeezed drips downunder.


Split ya off smile.gif

You have to be careful that you have the angle to point directly horizontal or vertical. When making gradients, I always have very thin images 1-5 px max and save them as high quality jpeg images with optimise selected and quality greater than 60.

The images are never more than 1kb so the higher quality doesn't cost bandwidth.


--------------------
Luke Dingle . com

Turn Over a Playful Leaf on Web Design -- read about the javascript cat
Go to the top of the page
 
+Quote Post
Antti
post Feb 18 2008, 03:01 AM
Post #3


Rapid Squeezer
Group Icon

Posts: 308
Joined: 15-February 08
From: Finland


The gradient is directly vertical and I've saved them using as high quality as I can get, still jagged.


--------------------
Go to the top of the page
 
+Quote Post
Rakuli
post Feb 18 2008, 03:04 AM
Post #4


Squeeze Machine
Group Icon

Posts: 766
Joined: 13-February 08
From: Catching the squeezed drips downunder.


How big is the image? Are you saving it at a different size when you save it? This would cause it to go jagged -- as happens when bitmaps are shrunk.

Also, what method do you use to apply the gradient?


--------------------
Luke Dingle . com

Turn Over a Playful Leaf on Web Design -- read about the javascript cat
Go to the top of the page
 
+Quote Post
Antti
post Feb 18 2008, 03:26 AM
Post #5


Rapid Squeezer
Group Icon

Posts: 308
Joined: 15-February 08
From: Finland


I'll have to try some things when I get back home to see if I can solve it. I'm not changing the size and I'm using the gradient tool to apply it. I'll get back to this if I can't solve it.


--------------------
Go to the top of the page
 
+Quote Post
Jason
post Feb 18 2008, 03:40 AM
Post #6


Master of the Universe
Group Icon

Posts: 1,298
Joined: 15-February 08
From: London, England


When you say jagged, you do you mean the gradient (dark to light) is jagged or where the gradients meet (when being repeated with CSS). Could you post the gradient image?


--------------------
Go to the top of the page
 
+Quote Post
Antti
post Feb 18 2008, 03:43 AM
Post #7


Rapid Squeezer
Group Icon

Posts: 308
Joined: 15-February 08
From: Finland


I mean the gradient. I'll post the image later today if I don't manage to get it right.


--------------------
Go to the top of the page
 
+Quote Post
Jason
post Feb 18 2008, 03:48 AM
Post #8


Master of the Universe
Group Icon

Posts: 1,298
Joined: 15-February 08
From: London, England


The only thing I can think of is that your gradient slice has picked up another graphical element, try disabling other layers when making the slice. Or the gradient you have made isn't straight. To get it straight hold shift when dragging the gradient.


--------------------
Go to the top of the page
 
+Quote Post
Antti
post Feb 18 2008, 04:05 AM
Post #9


Rapid Squeezer
Group Icon

Posts: 308
Joined: 15-February 08
From: Finland


I've done the gradient using shift so it should be straight. I'll try few things today to fix it but if I can't, I'll let you know.


--------------------
Go to the top of the page
 
+Quote Post
unitedcraig
post Feb 18 2008, 04:14 AM
Post #10


Squeeze Machine
Group Icon

Posts: 560
Joined: 14-February 08
From: Stockport


Have you a link to your site?


--------------------
Go to the top of the page
 
+Quote Post
Antti
post Feb 18 2008, 04:34 AM
Post #11


Rapid Squeezer
Group Icon

Posts: 308
Joined: 15-February 08
From: Finland


No link, I'll post the image if I don't manage to fix it.


--------------------
Go to the top of the page
 
+Quote Post
Bridges
post Feb 18 2008, 08:01 AM
Post #12


Fresh Squeezed
**

Posts: 13
Joined: 15-February 08
From: RI


I just made a nice gradient header. The gradient goes horizontal. My image is 1x108 and I saved it as .png. I read .png is the best for backgrounds. The quality is better then .gif or jpeg.

I made the gradient in a bigger image, once I had it the way I like it. I copied the layer style and paste it in my 1x108 image.

I had started another thread for background stripes, you should check it. A lot of great tips.
Go to the top of the page
 
+Quote Post
Bruno
post Feb 18 2008, 12:16 PM
Post #13


Rapid Squeezer
****

Posts: 177
Joined: 14-February 08
From: Northampton, England


i agree with the hole "png is better for backgrounds" thing i allways use pngs for gradient backgrounds cos with jpgs sometimes the colours "block up" so i get like fat strips of one solid colour and it doesnt fade properly try it and see what u come out with


--------------------
Thanks,
Dave.
---------------------------------
My Portfolio....:: bruno89.co.uk (60% finished)
Information.....:: Available for work
---------------------------------
Go to the top of the page
 
+Quote Post
thesealportaltea...
post Feb 18 2008, 12:51 PM
Post #14


Rapid Squeezer
****

Posts: 218
Joined: 14-February 08
From: Currently loacted in bustle of vurtual servers hosted by GoDaddy.com.


PNG - is the best format for sharing web graphics in general, but mostly used for backgrounds.
Depending on the colors used and how the gradient clashes, the scheme might not be able to be exported. I herd of 2 attempts with gradients have been straight then appear jagged. Another thing is depending if there is an overlay or if you do any extra effects, it may conflict when saving/exporting.

I though I was the only one with such a experience! smile.gif


--------------------
We are sorry but complaint.hell is not registered to Heaven Inc.
TheSealPortal.com - Yea, we are celebrating are 200th post at TWS. Everybody Party.
Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   16 unitedcraig 509 20th February 2008 - 07:34 AM
Last post by: unitedcraig
No New Posts   11 shammy2007 656 22nd February 2008 - 11:09 AM
Last post by: Stuart
No New Posts   11 unitedcraig 486 20th February 2008 - 02:48 AM
Last post by: Monie
No New Posts   6 thesealportalteam 355 25th February 2008 - 02:30 PM
Last post by: thesealportalteam
No New Posts   10 friendd 272 29th April 2008 - 03:28 PM
Last post by: Daygon