blog.teamsumpter.com

Sunday, April 01, 2007

How-to: A tutorial on using GIMP to create Glossy Shiny Buttons

Ok, this is a quick'n'easy tutorial on creating two types of shiny button using the unfortunately named but free Photoshop clone "the GIMP". If you're looking to do any web design work on the cheap, this is the best free tool for graphics work, but is a little complex when you first start.

I've found tutorials on this for Photoshop, but because GIMP doesn't have exactly the same features, its not always obvious what the equivalent step is. So this is a real no-brainer, follow the steps approach. For this tutorial, I'm using GIMP 2.

The aim is to end up with buttons that look like these:

Photo Sharing and Video Hosting at Photobucket Photo Sharing and Video Hosting at Photobucket

How very Web2.0. And if the steps are too complicated, or you want further info, or better still you ACTUALLY USE THEM - let me know by leaving a comment!

Style 1

This was my first stab, and it's ideally suited towards the sort of widgets/site-branding you see on the sidebars of blogs.

 Step 1: create a 200x100 image, and use the 'advanced options' to set the 'fill with' to Transparency. This is so you can use it on any coloured background.

Step 2: select All (ctrl-A), and the make a rounded rectangle (menu 'select->rounded rectangle), selecting a radius of 30%.

Step 3: select two colours for the fill; i'm going to use a brown (#525a38) and a lighter brown (#8e9c61).

Step 4: do a gradient fill, shape 'linear', starting with the dark brown at bottom, and light at the top.

Step 5: create a new layer, transparent.

Step 6: select the new layer, and shrink the rounded rectangle section (menu 'select->shrink') by 5 pixels

Photo Sharing and Video Hosting at Photobucket

Step 7: fill the new selection with white.

Step 8: add a layer mask to this (now-white) layer. do this by selecting the layer, and right-click, then 'add layer mask'. make it full transparent

Step 9: select the layer mask. select fg/bg colours as black/white, then do a linear gradient fill with white at the top of the selection, and black down only a few pixels (experiment with this, I used 10 pixels). This should leave the highlight glint on the button

Photo Sharing and Video Hosting at Photobucket

Step 10:  add the full web2.0 treatment with a drop-shadow. use step2 for getting the selection, select the bottom layer, then menu 'scriptfu->shadow->drop shadow'. colour black, offset x and y = 4, blur radius = 15. must allow resizing.

Step 11: add some text onto the button, and place it on your site now!

Style 2

This was an improved effort, giving a sort of bevel effect that makes it better for glossy buttons etc.

Step 1: create a 100x100 image, and use the 'advanced options' to set the 'fill with' to Transparency. This is so you can use it on any coloured background.

Step 2:  select All (ctrl-A), and the make a rounded rectangle (menu 'select->rounded rectangle), selecting a radius of 30%.

Step 3: select two complementary colours for the fill; so I'm going to use primary green (00ff00) and white.

Step 4: do a gradient fill, shape 'linear', starting with the green at around 25% in from the bottom and the white at the top.

Step 5: select a curved portion of the bottom using the ellipse selection tool. make it bigger than the image to just get part of the elipse in. The selection will be square at the bottom - not rounded like our rectangle edges from earlier: don't worry, we'll fix this later!

Photo Sharing and Video Hosting at Photobucket

Step 6: invert the selection (ctrl-I), then add a new layer - transparent again. keeping the selection active, select the new layer.

Step 7: fill the selection with white, and now lower the opacity of the new layer to 30. the button should now have that glossy look!

Step 8: lets remove the corners; repeat step2 on the new layer to get a rounded button selection. invert it (which is effectively selecting the 4 corners) and cut it (ctrl-x). we should now have a fully rounded button again!

Photo Sharing and Video Hosting at Photobucket

Step 9: now lets add a bevel. repeat step2 to get the rounded rectangle again, create a new transparent layer, select and fill this with black (don't worry, our real button is still there on the layers underneath).

Step 10. menu 'scriptfu->selection->fade outline'. border size=10, fade from=0, fade to=100. click ok. lower the layer's opacity down to around 20, and you get a little bevel effect making it look more like a real button.

Step 11. finally, for web2.0 completists, add a drop shadow for depth. Again, use step2 for getting the selection, select the bottom layer, then menu 'scriptfu->shadow->drop shadow'. colour black, offset x and y = 4, blur radius = 15. must allow resizing.

Step 12. and that's it. hoorah! use it everywhere.

Conclusion

Well, there you have it; two glossy button styles created using GIMP. Not much more to add, although if you use them in your sites design, drop me a link...

109 comments:

macewan said...

Would you publish a howto on making those web2.0 stars?

Neil Sumpter said...

No worries - point me to an example, and i'll create a 'how-to' here.

Anonymous said...

I had version 2.0 of Gimp and it doesn't have the rounded corners selection capability. Upgrading to 2.2 took care of the problem.

P.S Nice tutorial.

Neil Sumpter said...

many thanks; i'm a bit of a gimp noob, but if there's anything you want covered in a how-to, let me know and i'll come up with a step-by-step guide.

i'm hoping to cover: making widgets for you blog sidebar, creating a simple site with login/user details etc, using mootools for neat effects, and many more over the next few weeks...

Anonymous said...

I was having the darnedest time with step 9, until I figured out Repeat was set to Triangular wave and it should be none. I using Gimp 2.2.13.

What do you have Opacity and Offset set at? Even now, when I drag top to bottom 10 pixels, the white is very intense and doesn't appear as subtle as yours.

I'm trying to create the tabs from the book Bulletproof Web Design with Gimp, although this tutorial didn't address those specifically, it certainly was very helpful. My only suggestion would be, don't forget to mention the tool options that are set for us still getting the hang of it :-)

Thank You.

Neil Sumpter said...

thanks for the feedback: i'll assume you mean step 9 for style 1. I'm using gimp 2.2.3 - i'll check its ok with 2.2.13

I don't know what the "Repeat set to Triangluar Wave" refers to. In step 9, make sure you're selecting the layer mask and then do the linear gradient fill only a few pixels down on the layer mask from the top of the selection - that way it fades out real quick...I don't think i messed with the Opacity/Offset in that example.

I appreciate your comments, if there's a step that's wrong it'd be good to know - I'm not a Gimp Pro, so some of the features are overwhelming to me too!

Anonymous said...

excellent. this is just the sort of thing i was looking for. thanks for sharing.

David said...

That was beautiful! Thanks!

<a href="http://www.xanga.com/buy_levitra">Buy Levitra</a> said...

Great article! Thanks.

<a href="http://web.archive.org/web/20070818071347/freewebtown.com/loans1/payday-loans.html">Payday loans</a> said...

Nice Blog!

<a href="http://phentermine1.eamped.com">Phentermine</a> said...

Thanks for interesting article.

<a href="http://searcheng.site.io/index.html">Phentermine</a> said...

Thank You! Very interesting article. Do you can write anything else about it?

<a href="http://m1.aol.com/phentermine4">Phentermine</a> said...

Great Article! Thank You!

<a href="http://m1.aol.com/phentermine4">Buy Phentermine</a> said...

Thanks to author! I like articles like this, very interesting.

<a href="http://free-metro-pcs-ringtones.blogspot.com">Free Ringtones</a> said...

nice blog!

<a href="http://buy-viagra2007.blogspot.com">buy viagra</a> said...

nice blog!Nice information

<a href="http://buy-levitra--ooz.blogspot.com">Levitra</a> said...

:-) ochen\' zaebatyj blog!

<a href="http://buy-levitra--ooz.blogspot.com">buy Levitra Online</a> said...

Very interesting site. Blog is very good. I am happy that I think the same!

<a href="http://buy-soma--ooz.blogspot.com">Buy Soma</a> said...

soglasen s vami ochen\' zaebatyj blog!

<a href="http://search.cnn.com/search?query=site:cialis-online-2007.blogspot.com?cialis_online.html">Anonymous</a> said...

Keep up the great work. It very impressive. Enjoyed the visit!

<a href="http://search.cnn.com/search?query=site:m1.aol.com/phentermine4">Anonimous</a> said...

Nice! Nice site! Good resources here. I will bookmark!

<a href="http://courses.cvcc.vccs.edu/ENG112_GROSS/_Chat_Room/000008fd.htm">Anonimous</a> said...

Excellent website. Good work. Very useful. I will bookmark!

<a href="http://m2.aol.com/LorenLynn03/index8.html">Maxwells</a> said...

I see first time your site guys. I like you :)

viagra said...

Disaster is likely to wreak havoc in the life of an individual as soon as he becomes victim to erectile dysfunction and the most significant dreadful consequence of erectile dysfunction is that the afflicted man becomes incapable of facilitating erections required for sexual intercourse. The sexual vacuum resulted from erectile dysfunction prompts the sufferer to opt for anti-impotency pills, most especially the viagra medication that was approved by FDA (Food and Drugs Administration) as a clinically effective drug to cure erectile dysfunction in men. Viagra is meant to be administered by patients only after availing of viagra prescription from the doctor. The prescription for Viagra provided by the doctor spells out that the patient suffering from erectile dysfunction seriously need Viagra to treat his disorder and further authorizes the patient to avail of Viagra from the pharmacist.

Jabapyth said...

Thanks for the tutorial! I used it to create my ajax button creator, Buttonr.

Anonymous said...

Indulge yourself and find partners for hot Sexual Encounters and Adult Dating at Adult friend finder free dating site!
If you are looking for a one night stand or a casual encounter, then the Adult Swingers Club is where the game is played.
If you practice a different range of sexual and sensual activities then adult personals has the Club for you.
Download over 2000 adult dvd movies, available formats: windows, mpeg, psp and ipod!
Shop for Adult Toys, DVDs and Lingerie and other Erotic Adult Products at adult sex toys shop and adult toys store.

<a href="http://paydayadvisors.org">PaydayLoans</a> said...

YyxPEf You have a talant! Write more!

<a href="http://tes.uab.es/MISS/portal_memberdata/portraits/twkgxziok">Auto insurance company</a> said...

GjJqX6 Good job!

<a href="http://hydrocodone.99k.org/index.php">Hydrocodone</a> said...

kGed4x The best blog you have!

<a href="http://users2.titanichost.com/buyviagra/246.html">mortgage loan calculator software</a> said...

6GoYpl Wonderful blog.

<a href="http://free.7host07.com/nmcfgy/344.html">alsace-lorraine escorted tours</a> said...

Wonderful blog.

<a href="http://fioricet.clanteam.com/?pharma=600">westword fioricet phentermine</a> said...

Magnific!

<a href="http://celebrex.zxq.net/?pharma=237">buy cheap celebrex</a> said...

Hello all!

<a href="http://m1.aol.com/BrettHead14/491.html">usa payday loan</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/buyviagra/index2.html">cheap phentermine at our canadian pharma</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

<a href="http://xanax.newsit.es/effects-of-xanax-on-cocaine.html">effects of xanax on cocaine</a> said...

Thanks to author.

<a href="http://tramadol.newsit.es/bonline-tramadol.html">bonline tramadol</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

<a href="http://tramadol.newsit.es/tramadol-acetaminophine-tab-3.html">tramadol acetaminophine tab 3</a> said...

Wonderful blog.

<a href="http://phentermine.whdot.com/index12.html">st louis phentermine</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

<a href="users2.titanichost.com/amalopra">JohnBraun</a> said...

bGcEd0 write more, thanks.

<a href="http://users2.titanichost.com/popebatret/index14.html">comando sex position</a> said...

Please write anything else!

<a href="http://users2.titanichost.com/inoryum/index20.html">donkey sex hollandaise</a> said...

Nice Article.

<a href="http://users2.titanichost.com/hviler/index17.html">anime sex inuyasha</a> said...

Good job!

<a href="http://users2.titanichost.com/ansfur/index7.html">learning judaism sex</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/olds77/index4.html">free anal teen video</a> said...

Please write anything else!

<a href="http://users2.titanichost.com/shingro/index25.html">sex air pressure</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

<a href="http://users2.titanichost.com/scersi/index17.html">ebony sex collection</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/t1fielde/index32.html">ordinary family sex</a> said...

Magnific!

<a href="http://users2.titanichost.com/adjutes/index9.html">beast sex cartoons</a> said...

Good job!

<a href="http://users2.titanichost.com/adjutes/index14.html">beast stories sex</a> said...

Please write anything else!

<a href="http://users2.titanichost.com/shiconta/index17.html">crazy sex vedioes</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

<a href="http://users2.titanichost.com/gnites3/index6.html">hot sex pickups</a> said...

Nice Article.

<a href="http://users2.titanichost.com/marymeno/index34.html">quotes for sex</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/vadhoms/index32.html">man sex pet</a> said...

Beam me aboard, Scotty..... Sure. Will a 2x10 do?

<a href="http://users2.titanichost.com/etooking/index14.html">nude vacation sex</a> said...

Please write anything else!

<a href="http://users2.titanichost.com/swiseny/index22.html">doctor-patient sex movies</a> said...

Oops. My brain just hit a bad sector.

<a href="http://users2.titanichost.com/Lostsoldier3/index3.html">free hardcore sex porn fuck blow jo</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.titanichost.com/pyzoid/index18.html">bratislava sex clubs</a> said...

Beam me aboard, Scotty..... Sure. Will a 2x10 do?

<a href="http://users2.titanichost.com/pyzoid/index6.html">bollywood movies sex</a> said...

Energizer Bunny Arrested! Charged with battery.

<a href="http://users2.titanichost.com/selli83/index2.html">adult newsletter sex</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/numdaso/index29.html">irish sex sites</a> said...

Give me ambiguity or give me something else.

<a href="http://users2.TitanicHost.com/senatra/hydrocodone-750mg-pictures.html">hydrocodone 750mg pi</a> said...

Good job!

<a href="http://cialis.whdot.com/index17.html">cialis soft top</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://web.archive.org/web/20070818074236/xanga.com/buyultramonline">generic ultram</a> said...

Suicidal twin kills sister by mistake!

<a href="http://users2.titanichost.com/numdaso/index9.html">japan teens sex</a> said...

Save the whales, collect the whole set

<a href="http://users2.titanichost.com/febisko/index11.html">big sex tit</a> said...

Give me ambiguity or give me something else.

<a href="http://users2.titanichost.com/topletrufus/index20.html">gilbertsville sex offenders</a> said...

Good job!

<a href="http://users2.titanichost.com/yetzeit/39-0411.html">arab hardcore sex</a> said...

Clap on! , Clap off! clap@#&$NO CARRIER

<a href="http://users2.titanichost.com/brittanyrogers/index35.html">amateur sex pics</a> said...

A lot of people mistake a short memory for a clear conscience.

<a href="http://users2.titanichost.com/glicia80/index10.html">sex at company</a> said...

Oops. My brain just hit a bad sector.

<a href="http://users2.titanichost.com/reekello/index8.html">diaper sex stories</a> said...

Thanks to author.

<a href="http://users2.titanichost.com/tortene/index16.html">oily feet sex</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.TitanicHost.com/kopelar/clonidine-caused-tia.html">clonidine caused tia</a> said...

All generalizations are false, including this one.

name said...

When there's a will, I want to be in it.

<a href="http://users2.titanichost.com/cuhozhilov/index2.html">email subscription teen gay porn</a> said...

Energizer Bunny Arrested! Charged with battery.

<a href="http://users2.titanichost.com/robertf/index12.html">raw xxx porn</a> said...

Save the whales, collect the whole set

<a href="http://users2.titanichost.com/maxeevich/index25.html">absolutely free sex porn movies and v</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.titanichost.com/dityroe/index6.html">lesibian havin sex</a> said...

If ignorance is bliss, you must be orgasmic.

<a href="http://users2.titanichost.com/liperwo/index29.html">avril having sex</a> said...

Calvin, we will not have an anatomically correct snowman!

<a href="http://users2.titanichost.com/dasistorama/index8.html">gay brazilian porn</a> said...

When there's a will, I want to be in it.

<a href="http://users2.titanichost.com/rego07/index1.html">dans porn trailers</a> said...

Energizer Bunny Arrested! Charged with battery.

<a href="http://users2.titanichost.com/artinko/index21.html">hidden camera in glasses porn</a> said...

Oops. My brain just hit a bad sector.

<a href="http://users2.titanichost.com/lindafmosley/index26.html">bba black anal</a> said...

Friends help you move. Real friends help you move bodies.

<a href="http://users2.titanichost.com/tereritoa1/index16.html">frog having sex</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.titanichost.com/eynol/index27.html">porn thunder pics</a> said...

What is a free gift ? Aren't all gifts free?

<a href="http://users2.titanichost.com/dentouj/index17.html">health sex etc</a> said...

Nice Article.

<a href="http://users2.TitanicHost.com/staer/indiana-alcohol-license.html">indiana alcohol license</a> said...

Magnific!

<a href="http://users2.titanichost.com/bybonte/index.html">celeb sex scemes</a> said...

I don't suffer from insanity. I enjoy every minute of it.

<a href="http://users2.titanichost.com/unareq/index23.html">playboy phone sex</a> said...

Save the whales, collect the whole set

<a href="http://users2.titanichost.com/mezers/index4.html">califonia sex offenders</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

<a href="http://users2.titanichost.com/deswef/index26.html">car hot sex</a> said...

Friends help you move. Real friends help you move bodies.

<a href="http://users2.titanichost.com/tedethe/index21.html">free instructional sex</a> said...

Change is inevitable, except from a vending machine.

<a href="http://users2.titanichost.com/simpleplayer/index2.html">import porn</a> said...

Lottery: A tax on people who are bad at math.

<a href="http://users2.titanichost.com/sobermi/index30.html">indonesia sex porno</a> said...

Save the whales, collect the whole set

<a href="http://users2.titanichost.com/clydej/index35.html">utube porn</a> said...

What is a free gift ? Aren't all gifts free?

<a href="http://users2.titanichost.com/xcalomi/index10.html">katies diary sex</a> said...

What is a free gift ? Aren't all gifts free?

<a href="http://users2.titanichost.com/ramisew/index19.html">premier fois sex</a> said...

C++ should have been called B

<a href="http://users2.titanichost.com/hegory/index17.html">annie cruz porn star dvd and videos and</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/sidspros/index28.html">lady sonia sex</a> said...

A flashlight is a case for holding dead batteries.

<a href="http://users2.titanichost.com/whitedenster/index17.html">black celebrty porn</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/MarcellaDurant/index34.html">1 sex girls</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.titanichost.com/cationie1/index10.html">petite xxx sex</a> said...

Change is inevitable, except from a vending machine.

<a href="http://phentermine.43i.net/440-061107.html">complete phentermine information from drugs com</a> said...

Oops. My brain just hit a bad sector.

<a href="http://phentermine.43i.net/203-061107.html">buy phentermine no perscritpion</a> said...

When there's a will, I want to be in it.

<a href="http://phentermine.43i.org/267-061107.html">buy phentermine online with pay pal buy cheap p</a> said...

What is a free gift ? Aren't all gifts free?

<a href="http://users2.titanichost.com/nimytre/index24.html">images prehistoric sex</a> said...

Hello all!

Anonymous said...

Thank you so much for this great tutorial!

Payday Loan said...

Payday loan

Kleidung Klamotten said...

Thanks for very interesting article. btw. I really enjoyed reading all of your postsabout Klamotten . It's interesting to read ideas about your stuff and Kleidung , and observations from someone else's point of view… makes you think more. Read more about Pattern and Crochet
Visit my Bodybuilding Muskelaufbau Shop . Best regards! Schwule - Gays

PROFILE

SUMPTER SPONSORS

SUBSCRIBE

Subscribe by email:
Enter your email address:


Delivered by FeedBurner

POSTS