Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-20-2003, 02:06 PM   PM User | #1
MCD4x4
Regular Coder

 
Join Date: Feb 2003
Location: Brooklyn, New York
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
MCD4x4 is an unknown quantity at this point
PotoShop helo problem

Hi Peeps,
I'm having a tough time trying to get rid of a white halo around things I cut out and save as a transparent .gif. Heres a link so you can see the mess I'm making of this great program. http://www.mcd4x4.com/test.html I usally figure everything out , this ones kicking my butt.
__________________
BrianNY/Rookie
MCD4x4 is offline   Reply With Quote
Old 06-20-2003, 02:43 PM   PM User | #2
MotherNatrsSon
Senior Coder

 
Join Date: Mar 2003
Location: OHIO
Posts: 1,438
Thanks: 1
Thanked 0 Times in 0 Posts
MotherNatrsSon is an unknown quantity at this point
I would use the magnestic lasso tool to cut the image out. Be sure you have the selections in the top tool bar set so it follows the exact outline of the truck. A little experimentation and it will cut it out with no excess. I would also suggest feathering the edges into the background color a vit before you svae it also.

MNS
MotherNatrsSon is offline   Reply With Quote
Old 06-20-2003, 04:41 PM   PM User | #3
bradyj
Senior Coder

 
Join Date: Apr 2003
Location: San Francisco, CA
Posts: 2,469
Thanks: 0
Thanked 0 Times in 0 Posts
bradyj is an unknown quantity at this point
You can feather the edge to the background, yes -- but you may also want to cut out the outside of the truck, without anti-aliasing it. The reason for your white border, is since anti-aliasing is on for the selection in photoshop (not to mention that you need to improve your cut out line for the image). If you do a selection, you will notice in photoshop that the active bar on top will have a feathering option. Choose 0px and you won't get that in your gifs. This creates a hard edge, however, and I would recommend cleaning up your cut line before you do this.

I did one without the white edge line for you, but I don't have time at work to redo your cut line.

http://www.dotfive.com/truck/index.html
__________________
// Art is what you can get away with. <-- Andy Warhol
...:.:::: bradyjfrey.com : htmldog : ::::.:...
bradyj is offline   Reply With Quote
Old 06-20-2003, 05:54 PM   PM User | #4
MCD4x4
Regular Coder

 
Join Date: Feb 2003
Location: Brooklyn, New York
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
MCD4x4 is an unknown quantity at this point
I tried the magnetic lasso, it didn't work. But thanks for the try. Brandy, setting the feathering option on 0px gave me this http://mcd4x4.com/test2.html. I cut very well, I just did that truck fast so you could see the halo. Have a look at the edges now I cut through a bunch of different colors so you can see clearly, its there. Someone mentioned to me that there's a way to inverse somehow and take off 2px to clean up the halo. I just don't remember what they said.
__________________
BrianNY/Rookie
MCD4x4 is offline   Reply With Quote
Old 06-20-2003, 06:09 PM   PM User | #5
pardicity3
Regular Coder

 
Join Date: Jun 2002
Location: Iowa / Notre Dame
Posts: 538
Thanks: 0
Thanked 0 Times in 0 Posts
pardicity3 is an unknown quantity at this point
Quote:
Originally posted by MCD4x4
Someone mentioned to me that there's a way to inverse somehow and take off 2px to clean up the halo. I just don't remember what they said.
If you select the truck, you can go to Select -> Modify -> Contract. then just set your contract to about 2 px. From there you will want to inverse your selection (so that you don't have the truck selected, but everything around it). You may now wish to feather your selection just a couple of pixels. Once you've done that hit delete. I think that is the method you were describing. Sometimes it works well...sometimes it doesn't.

Edit: Also, just so you know, this method doesn't work too well when you are using a transparent gif. The anti-aliasing is lost when you make a gif transparent (as bradyj explained) and thus you will get a halo.
__________________
My Site {Mike's Adventures}

Yikes, forums are almost too much fun.
pardicity3 is offline   Reply With Quote
Old 06-20-2003, 06:37 PM   PM User | #6
MCD4x4
Regular Coder

 
Join Date: Feb 2003
Location: Brooklyn, New York
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
MCD4x4 is an unknown quantity at this point
Let me ask you this, whats the best way to cut something out and save it as a transparent .gif? With a sharp edge. I'm using PhotoShop 7.0. Thanks
__________________
BrianNY/Rookie
MCD4x4 is offline   Reply With Quote
Old 06-20-2003, 06:50 PM   PM User | #7
MotherNatrsSon
Senior Coder

 
Join Date: Mar 2003
Location: OHIO
Posts: 1,438
Thanks: 1
Thanked 0 Times in 0 Posts
MotherNatrsSon is an unknown quantity at this point
The best way is with the magnetic lasso tool. Upload the original image (the one you are cutting the truck out of) here as a jpeg and I will show you that it can be done. I use PS 7 also.

MNS
MotherNatrsSon is offline   Reply With Quote
Old 06-20-2003, 07:06 PM   PM User | #8
MCD4x4
Regular Coder

 
Join Date: Feb 2003
Location: Brooklyn, New York
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
MCD4x4 is an unknown quantity at this point
Hi MNS,
If I did it right, heres the original picture.
Attached Thumbnails
Click image for larger version

Name:	dcp_1498.jpg
Views:	259
Size:	22.3 KB
ID:	980  
__________________
BrianNY/Rookie
MCD4x4 is offline   Reply With Quote
Old 06-20-2003, 08:01 PM   PM User | #9
bradyj
Senior Coder

 
Join Date: Apr 2003
Location: San Francisco, CA
Posts: 2,469
Thanks: 0
Thanked 0 Times in 0 Posts
bradyj is an unknown quantity at this point
The professional way of doing it is this:
Make one layer your truck, and another layer underneath it that is some odd color (like a bright green or blue). On the truck layer, add a mask to it.

With the mask selected, use the paint brush tool (either feathered or not, depending on the proper effect you want) and paint with black to delete the image as you wish. Using the paintbrush, you can now control how the edges are hard or feathered, and you can paint away as much or as little of the image as you want. You can make the paint brush small and zoom in close to get hard edges, or big and zoom out to dump alot of the image.

When you are done, you may apply the the mask and that's that. That's the proper way, and much more precise than a selection tool.

Still, you will always get a halo, if you have a feathered layer and a transparency. You will always get a halo, if you don't cut into the image enough.
__________________
// Art is what you can get away with. <-- Andy Warhol
...:.:::: bradyjfrey.com : htmldog : ::::.:...
bradyj is offline   Reply With Quote
Old 06-20-2003, 10:07 PM   PM User | #10
MotherNatrsSon
Senior Coder

 
Join Date: Mar 2003
Location: OHIO
Posts: 1,438
Thanks: 1
Thanked 0 Times in 0 Posts
MotherNatrsSon is an unknown quantity at this point
I figured out part of the problem. Your are taking a low resolution image and enlarging it. I did this in a few minutes with the magnetic lasso tool but it is the same size as the original you posted. If you want to enlarge it you need to find a larger pic or increase the resolution in the original before you cut it out and enlarge it.

MNS
Attached Files
File Type: zip truck.zip (25.9 KB, 166 views)
MotherNatrsSon is offline   Reply With Quote
Old 06-23-2003, 03:49 PM   PM User | #11
Spook'sGirl
New to the CF scene

 
Join Date: Jan 2003
Location: SC
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Spook'sGirl is an unknown quantity at this point
Quote:
Originally posted by pardicity3
If you select the truck, you can go to Select -> Modify -> Contract. then just set your contract to about 2 px. From there you will want to inverse your selection (so that you don't have the truck selected, but everything around it). You may now wish to feather your selection just a couple of pixels. Once you've done that hit delete. I think that is the method you were describing. Sometimes it works well...sometimes it doesn't.

Edit: Also, just so you know, this method doesn't work too well when you are using a transparent gif. The anti-aliasing is lost when you make a gif transparent (as bradyj explained) and thus you will get a halo.
I concur with this option .... But it does make for a pretty unnatural edge most of the time. Usually I take care of it this way .... duplicate the layer and set the levels of the bottom layer to black. Then Gaussian Blur by 3pixels or so and that will sofen your line.... you can also move the bottom layer just a smidge for a drop shadow effect. There is probably a better way of doing this in newer versions of photoshop, but I have stuck with this one and am generally pleased with the results.
__________________
"Never underestimate the power of idiots in large groups."
Spook'sGirl is offline   Reply With Quote
Old 06-23-2003, 07:31 PM   PM User | #12
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
try contracting it a 2px then feathering the selection. then invert it and delete. you may get something acceptable
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 06-30-2003, 09:27 PM   PM User | #13
colorspots
New Coder

 
Join Date: May 2003
Location: Provo Utah
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
colorspots is an unknown quantity at this point
I don't have photoshop 7 but in version 6. Click file, save for web, choose gif. In the gif dialog it allows you to choose a matte. Select none and it removes most of your white line.
colorspots is offline   Reply With Quote
Old 07-01-2003, 10:52 AM   PM User | #14
rhs
New Coder

 
Join Date: Jun 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
rhs is an unknown quantity at this point
Also consider this:

i think your aim is to cut out the image and use it on a web page. Right.

> Select the truck carefully with whichever tool u r comfortable with- lasso, magnetic lasso
> select inverse
>edit>cut (this will cut the background away)
>new layer
Choose a color in the color pallette that matches exactly with the page color (you may have to copy hex values)

>with paint bucket fill the new backgroud layer
>layers> merge/flatten image> save

touch up the edges if necessay.

Hope it works for you.

and jpegs hold more colors - I think

All the best

RHS
rhs is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:01 PM.


Advertisement
Log in to turn off these ads.