BradBlogging
Skip to content
  • About
  • Contact
  • Advertise
  • What Is R.S.S and Why Subscribe To Us?
  • Free Premium WordPress Themes
Tweet
Share
« Focus On Website Loading Speed Now More Than Ever – Google “Caffeine” Update
Are You Missing Out on 14.24% of YOUR Website Conversions? »

Optimize “CSS Repeated” Background Images In Photoshop

Website-Gradient-Optimize

Today were going to take a look at how to optimize your background images in Photoshop. Most blogs use a repeated background image to provide a sense of individuality in their blog designs. In most cases, this sets blogs apart by appearance which is an excellent first step in attracting new readers.

Photoshop CS3 is an amazing tool that has years of experience built into its image algorithms. By utilizing the 4 pane view in Photoshop (when saving an image) you can reduce the size of your image to the smallest possible.

Using CSS’s repeat function, you can use beautiful gradients and background images without killing your web server.

Lets take a real look at what I’m talking about here:

The Correct Way To Optimize Background Images in Photoshop:

Step 1 – Find a vector image on the internet or custom design your own gradient with Photoshop, as such:

Step1-Design-The-Gradient

Step 2 – Depending on the image chosen, make the vector as small as possible so that you can “repeat” the property using CSS – Using a large image to repeat a pattern just wastes bandwidth. For gradients, reduce your picture to 1px by the height.

Step2-Reduce-The-File-Size

Step 3 – Click “File” and “Save for Web & Devices” (just using “Save As” doesn’t take advantage of the unique algorithms). Once you are in this menu, choose the “4-Up” option in the tabs which allows you to see four different previews in any format you choose.

Step3-Choose-The-4up-Menu

Step 4 – In the first square is the original file. Click the second frame and choose a JPEG, set it to at least high quality. In the third frame choose the PNG-24 encoding and finally in the fourth frame choose the PNG-8 option. You can change the colours as you wish, but the best you can get with PNG-8 is 256 colours.

Step 5 – Now comes the easy part, after adjusting the settings on each of the proofs, you can now view which file is the smallest! For 1px width gradients, I’ve found that PNG-24 compresses it the best without a loss of quality.

Step5-Choose-The-Smallest-Image-File

Step 6 – Choose your save location and then start using it in your website! If you like the gradient used in the example, save this file to your computer and feel free to use it. If you want to use it via CSS, simply use the “background” property of an element. IE:

.elementexample {
background: url("WhereisTheGradientLocated.png") repeat-x;
}

Conclusion – Compressing Gradients For Faster Loading Websites

This is such an easy method to use if you have Photoshop to reduce website loading times. I utilize this technique on every website that I design and find it to be well worth the effort. This method can be used to save any image for a website, as it gives you four different formats to choose from.

Have you found a better way to compress gradients? What techniques do you use when saving a gradient for a website?

Part 1 of the “Reduce Your Blog’s Loading Speed” post series.

This entry was posted in Blog Loading Speed and tagged Blog, Blog Design, Website Design. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Enjoy this post? Theres more to come, so click here to subscribe to our RSS Feed.

Loading...
« Focus On Website Loading Speed Now More Than Ever – Google “Caffeine” Update
Are You Missing Out on 14.24% of YOUR Website Conversions? »

20 Comments

  1. Jonny
    Posted December 10, 2009 at 3:12 pm | Permalink

    Really cool tip Brad…. very clever. I usually design a logo and compress in png24. Not that I can design logo’s very well.

    Reply
    • Brad Ney
      Posted December 10, 2009 at 4:34 pm | Permalink

      Funny enough.. I also used PNG24 to format my logo at the top of this blog! I like PNG24 not only for the fact that it supports transparency and millions of colours, but it also makes a perfect image compared to a JPEG.

      Great hearing your opinion, Jonny! :D

      Reply
  2. Tess
    Posted December 11, 2009 at 9:37 pm | Permalink

    Nice to be learning online about photoshop. I also want my website background to stand out.

    Reply
    • Brad Ney
      Posted December 19, 2009 at 3:56 pm | Permalink

      Repeated backgrounds are easy on bandwidth and provide a great way to differentiate your website against the billions of other ones on the internet! :)

      Reply
  3. Jenny M.
    Posted December 14, 2009 at 10:21 pm | Permalink

    I’ve been using Photoshop CS3 for a year and only now did I know notice that there’s a save as ‘Save for Web & Devices’. I’ve always thought of JPG as the best format with the least size for webpages. 4UP? PNG24? Hmmmn…it pays to read more and not pretend to know enough. :) Thanks Brad.
    .-= Jenny M.´s last blog ..Flower Shops That Deliver =-.

    Reply
    • Brad Ney
      Posted December 19, 2009 at 3:57 pm | Permalink

      Hi Jenny – I thought the same thing until I read a tutorial on how to create photoshop images which lead me to that save button. LOL – Glad you found the article useful! :)

      Reply
  4. Nezine
    Posted December 17, 2009 at 2:21 pm | Permalink

    Nice technique there!

    What is the difference between the standard Photoshop and CS3. Can you the same with the standard one?

    Reply
    • Brad Ney
      Posted December 19, 2009 at 3:57 pm | Permalink

      I’m sure that there should be a “Save for web” option on older versions, however I do not know what it would be called in older versions… do you?

      Reply
  5. Jayce
    Posted December 19, 2009 at 8:49 am | Permalink

    My current theme cannot support it. Need to do some customization before apply this. ;)
    .-= Jayce´s last blog ..How to hack Facebook account profile =-.

    Reply
    • Brad Ney
      Posted December 19, 2009 at 3:58 pm | Permalink

      Could you elaborate on what you mean by not supporting it? I’d be glad to help.

      Reply
  6. Cristino
    Posted December 30, 2009 at 7:07 am | Permalink

    Oh it’s really nice post and very informative. I find it helpful and useful for my site. Thanks for sharing.

    Reply
  7. Kaye Swain
    Posted July 20, 2010 at 11:48 pm | Permalink

    Thanks for this info! I enjoy my easy to use digital camera on automatic and use Picnik.com for make bare-bones corrections – ultra easy! But I have a good friend who is a whiz with her digital SLR and Photoshop and I’ll send her the link for this. Have a great day.

    Reply
    • Brad Ney
      Posted July 21, 2010 at 9:43 am | Permalink

      Thanks for sharing the link! I hope your friend finds it useful. :)

      Reply
  8. chord
    Posted December 31, 2010 at 9:12 pm | Permalink

    very great and informative post. thanks a lot for sharing it.

    Reply
  9. yosua
    Posted February 11, 2011 at 5:06 am | Permalink

    wheere i find turitorial for cs5?

    Reply
  10. Zeth
    Posted March 16, 2011 at 10:30 pm | Permalink

    Good stuff! I didn’t know about the 4 different views, so you can see which version is smaller. Great blog!!

    Reply
  11. Ontario web design
    Posted November 2, 2011 at 9:56 pm | Permalink

    Thank YOU for offering a great way to optimize my background images. I shall implement your method!

    Best wishes,
    Trish

    Reply
  12. Ontario web designer
    Posted December 12, 2011 at 6:24 pm | Permalink

    Thank YOU for offering a great way to optimize my background images. I shall be sure to implement your method!

    Best wishes,
    Trish

    Reply
  13. hotel
    Posted February 14, 2012 at 4:50 am | Permalink

    thanks, i learnt something new from this useful post

    Reply
  14. Ontario web design
    Posted March 3, 2012 at 6:54 pm | Permalink

    Not that I’ve found a better way to compress gradients, but I have found a less expensive way to compress images (if your readers don’t own Photoshop). For those who have asked me, I always suggest they do an Internet search for “free image compressor”, potentially saving them the cost of buying Photoshop.

    Thanks,
    Trish

    Reply

One Trackback

  1. By 16 Indispensable Tools to Optimize Photos for the Web « Inland Pacific Consulting on March 5, 2010 at 10:43 pm

    [...] Optimize “CSS Repeated” Background Images In Photoshop (bradblogging.com) Categories: Tips Tags: Web Design and Development [...]

Post a Comment

Click here to cancel reply.

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badgeShow more posts

2136 RSS Subscribers

Subscribe today to receive any updates on this blog for free!

You'll also receive, "The Blog Manual" free of charge for being a subscriber which you can download at the bottom of each post.

 


Hosted by EZP.net

You might notice how quick this site loads. This is because of EZP.net's awesome web hosting services, from quick support to premium hardware, this company is one notch above the rest. You should use EZP.net to host your sites... They care about their customers.

  • Popular Posts
  • Categories

Popular Articles

  • Optimize Repeated Web Backgrounds with Photoshop
  • 16 Jquery Slideshow Scripts You Cannot Miss
  • How to Create your Own 4 Column Blog Footer - HTML/CSS Included!
  • How To: Reduce Your Blog's Bounce Rate

Blog Categories

  • Advertising & Blogs
  • Article Readability
  • Asides
  • Blog Comments
  • Blog Design
  • Blog Loading Speed
  • Contemplation
  • Featured Posts
  • How To
  • Increase Readers
  • Increase Traffic
  • Interviews
  • Jquery Tools
  • Previous Contests
  • Tutorials
  • Unique Widgets
  • Web Security
  • Website Reviews
  • Wordpress Coding
  • Wordpress Templates

About The Author

Brad Ney

I am a Wordpress enthusiast, part-time website designer, and enjoy using the latest technology via the internet for website promotion. I enjoy writing about startup websites, XHTML, CSS, Wordpress based on what I've learned in the industry.

01. Subscribe!

Click the shiny button for the RSS Feed. This will allow you to recieve each update either via email or via your favourite RSS Reader.
Beats checking the site for new updates!

02. Hand-Picked Articles

  • The Following Mentality Of The Internet
  • Blog Comment Spam
  • Increase Audience Participation with Blog Polls
  • 9 Jquery Slideshow Applications You Cannot Miss

Spend some time reading BradBlogging's most famous blog articles.

03. Start a Blog!

Take advantage of all the information here by using the resources below to start your website:

1. Register A Domain Name

2. Top Notch Web Hosting

04. Contribute

Have a great idea for an article? Want something written about? Drop me a line!

Claim Your Free Blog Guide and Wordpress Template!

It's Brad Here and I just wanted to let you know that you are missing out on two free downloads I have for my readers. You can obtain these downloads for free by subscribing below - I promise that I will not spam and only send you updates from this blog.

Subscribe Today: