Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Pixellated stroke on paths in Photoshop

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Pixellated stroke on paths in Photoshop

    Does anyone else have trouble with rendering smooth lines in Photoshop via the stroke in layer effects? I've been trying to draw a city map, first at 150ppi and then at 300ppi to see if the resolution made a difference, but I keep getting jagged stroke. It doesn't seem to matter if I use shapes or paths, 100% hardness on the brushes or 90%. Some lines render just fine, but others get this awful pixelly look to them.

    jaggedstroke.png

    I've tried looking it up, but the only useful suggestion I could find was to reset my Photoshop preferences, which hasn't done squat to fix the issue. I can't find anywhere to change the anti-alias settings, either, and I'm not sure if that's even the problem to begin with.

    Has anyone else ever encountered this problem with Photoshop? How did you fix it? At this rate, I'm going to have to switch to Paint Tool SAI for the line-art, but that doesn't do shapes very easily so I'd rather not...

    ETA:

    I've tried it with the Edit > Stroke menu (as opposed to stroking via layer effects) and it's much smoother, but it also means I can't easily edit the lines via blending options.
    Last edited by soggymuse; 11-11-2015 at 06:53 AM.

  2. #2
    Guild Expert Facebook Connected Meshon's Avatar
    Join Date
    Nov 2009
    Location
    Edmonton, Alberta, Canada
    Posts
    1,167

    Default

    Did you draw the layer over again after you increased the resolution? You could also try using the outer glow effect to make the stroke, or use the shape burst option with a gradient stroke to see if that softens up the jaggies. Best of luck!

    Update: I just tried it out and adjusting the spacing of the brush to 1% made a little difference. Also drawing the shapes with the pen tool seems to give slightly better results.

    Sent from my SGH-I747M using Tapatalk
    Last edited by Meshon; 11-11-2015 at 10:39 AM. Reason: Update

  3. #3

    Default

    I agree with Meshon.
    It depends how you are getting the 'stroked' line.
    You can use edit-stroke to stroke a selection which can be a fast option but it's almost always better to do a pen tool path and stroke it.
    There are more option that way. I always do the stroke on it's own layer as well.
    When stroking via path I believe you are using the current brush and its settings.
    I don't know if that applies with edit - stroke. If stroke via path - do you have smoothing set in your brush settings?

  4. #4
    Guild Grand Master Azélor's Avatar
    Join Date
    Jul 2008
    Location
    Québec
    Posts
    3,363

    Default

    Make them bigger. At this size, every line with an angle will look pixelated. Even if you try too smooth them, there is not enough pixels to make it look smooth.
    Another solution would be to use a vector program. It will always have smooth lines. It's perfect for the line work and then you can import it to photoshop.

    Also, it only look jagged when I zoom in, the preview look just fine.

  5. #5

    Default

    First, a bit of clarification: Changing the print resolution (dpi or ppi) will do nothing regarding what's on your screen. It will only come into play if you print the image out. So you can take that out of the equation straight off.

    Are we looking at a 1:1 view here or a zoomed-in screenshot? Were the aliased towers created square first, then rotated, or did you draw them at their final orientation?

    If all of the towers are just copies of the "upright" versions and simply rotated, then I can say with relative assurance that the pixelation you are seeing is not an artifact of your stroke but one of a lack of filtering. You can change the default filtering method that Photoshop uses in the Preferences > General. Image Interpolation is the setting to examine. If you have it set to Nearest Neighbor, that would account for the aliasing. Nearest Neighbor doesn't do any color averaging at all, so it will almost always produce the "jaggies."
    Bryan Ray, visual effects artist
    http://www.bryanray.name

  6. #6
    Professional Artist Carnifex's Avatar
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    672

    Default

    Easy! Your screenshot looks just the way it should do. You must increase the size (in pixels) of the image/map and simply draw "bigger" walls and towers!

    A pixel image (such as the ones you make in Photoshop ALWAYS look "jagged" when you zoom more than 100% - set the zoom to 100% and it will look good.

    (The reason some towers look "sharp" are because they "line up" with the pixels)
    Last edited by Carnifex; 11-12-2015 at 06:06 PM.

  7. #7
    Guild Expert snodsy's Avatar
    Join Date
    Sep 2014
    Location
    Cincinnati/Northern Kentucky Area
    Posts
    1,331

    Default

    Really you want your map sized so that your main line work your using is at least 4pixels. If your using 1 or 2 anything that's not horizontal/vertical will have jagged edges that look pixelated, actually all sizes will have jagged edges but you don't notice as much with thicker lines. Also by putting a glow on them, you make the adjacent pixels closer in color so it looks better, but it's not crisper.

  8. #8

    Default

    Thank you all for your help, guys! Sorry for the slow response, I haven't had the mental capacity for trouble-shooting in the last few days.

    Quote Originally Posted by Meshon View Post
    Did you draw the layer over again after you increased the resolution? You could also try using the outer glow effect to make the stroke, or use the shape burst option with a gradient stroke to see if that softens up the jaggies. Best of luck!

    Update: I just tried it out and adjusting the spacing of the brush to 1% made a little difference. Also drawing the shapes with the pen tool seems to give slightly better results.
    No, but I drew another line at an angle after increasing resolution and it didn't make a difference to the jaggedness. I did try with a black outer glow set to Normal at 100% and size 2px, but it's a lot fainter than the stroke. It would suffice if I can't fix the stroke issue, though, so I appreciate the suggestion. I never thought of using outer glow for stroke before. (I'm not sure how to do the shape burst thing, though.)

    Sadly, adjusting the brush spacing to 1% didn't seem to do anything for me.

    Quote Originally Posted by J.Edward View Post
    I agree with Meshon.
    It depends how you are getting the 'stroked' line.
    You can use edit-stroke to stroke a selection which can be a fast option but it's almost always better to do a pen tool path and stroke it.
    There are more option that way. I always do the stroke on it's own layer as well.
    When stroking via path I believe you are using the current brush and its settings.
    I don't know if that applies with edit - stroke. If stroke via path - do you have smoothing set in your brush settings?
    I normally use the pen tool, then right click and "stroke path" to get the main line, then use layer effects for the stroke. In this case, I'm stroking the path in white (10px for the city walls and major roads) and adding a 2px black stroke in blending options.

    I can get much smoother lines using the Edit > Stroke... menu instead, which was a suggestion that came up when I went looking for answers on Google, but it's a more destructive option because it's not editable like layer effects are. (You're right that the usual Pen > Stroke Path option uses the current brush settings where Edit > Stroke doesn't seem to. I've tried fiddling with the brush, spacing it more or less and changing the softness, but it doesn't seem to the affect the stroke via blending options.)

    It's the outline - the black stroke added by layer effects, and not the Pen > Stroke Path - that's the issue. The actual stroked lines come out just fine, but if you add the stroke via blending options, you get a jagged line.

    Quote Originally Posted by Azelor View Post
    Make them bigger. At this size, every line with an angle will look pixelated. Even if you try too smooth them, there is not enough pixels to make it look smooth.
    Another solution would be to use a vector program. It will always have smooth lines. It's perfect for the line work and then you can import it to photoshop.

    Also, it only look jagged when I zoom in, the preview look just fine.
    The thing is, I never had this problem before. Stroke on layer effects was always smooth. Unfortunately, the only vector programme I have is Paint Tool SAI, and it's not great for straight lines. This is for a request due in January so I don't want to have to learn a new software like Inkscape when I should be working on the map. (Then again... the time it takes to fix this issue might be worth the leaning curve!)

    The problem with the zoom is that the thumbnail is the smaller version. I took the screenshot at 100% zoom (CTRL+1) so the image you click on is the actual size. If you're looking at full view, you get the jagged black lines, which shouldn't (and never used to) happen.

    Quote Originally Posted by Midgardsormr View Post
    First, a bit of clarification: Changing the print resolution (dpi or ppi) will do nothing regarding what's on your screen. It will only come into play if you print the image out. So you can take that out of the equation straight off.

    Are we looking at a 1:1 view here or a zoomed-in screenshot? Were the aliased towers created square first, then rotated, or did you draw them at their final orientation?

    If all of the towers are just copies of the "upright" versions and simply rotated, then I can say with relative assurance that the pixelation you are seeing is not an artifact of your stroke but one of a lack of filtering. You can change the default filtering method that Photoshop uses in the Preferences > General. Image Interpolation is the setting to examine. If you have it set to Nearest Neighbor, that would account for the aliasing. Nearest Neighbor doesn't do any color averaging at all, so it will almost always produce the "jaggies."
    Ooh, I see! This is for print, so I should have started at 300 anyway, but it's good to know it doesn't affect rendering like that.

    I'm not sure what the thumbnail is, but the screenshot is of full 100% zoom (CTRL+1 in Photoshop).

    The square towers were created square then rotated, yeah. The circles were not rotated and still have the jagged stroke on some of them. I've got image interpolation set to bicubic (default) if that changes anything.

    Quote Originally Posted by Carnifex View Post
    Easy! Your screenshot looks just the way it should do. You must increase the size (in pixels) of the image/map and simply draw "bigger" walls and towers!

    A pixel image (such as the ones you make in Photoshop ALWAYS look "jagged" when you zoom more than 100% - set the zoom to 100% and it will look good.

    (The reason some towers look "sharp" are because they "line up" with the pixels)
    The image the thumbnail leads to is a screenshot of the map at 100% and it still shows jagged edges. The thumbnail itself looks okay, though. I'm not sure what size I'd need to make the map for it to look good at print size. :/

    Quote Originally Posted by snodsy View Post
    Really you want your map sized so that your main line work your using is at least 4pixels. If your using 1 or 2 anything that's not horizontal/vertical will have jagged edges that look pixelated, actually all sizes will have jagged edges but you don't notice as much with thicker lines. Also by putting a glow on them, you make the adjacent pixels closer in color so it looks better, but it's not crisper.
    I tried adding a glow and stroke via layer effects to a 10px line. It does look better, but the glow needs to be 10px as well to hide the jagged stroke, which just doesn't look right on this map (especially not also applied to buildings).

    How big would you suggest I make the map for printing in a book and also hide the problem of jagged lines? (The author hasn't specified how large it actually needs to be despite asking a few times so I can't give more information than that. I'd guess it's for a regular hardback, though.) I started out with a 2000x2000 canvas at 150ppi with intent to sketch the layout, but I'm used to creating for digital only so I have no idea what size to up it to now.

    Thanks again for all your help and suggestions. I really appreciate it!

  9. #9
    Professional Artist Carnifex's Avatar
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    672

    Default

    Quote Originally Posted by soggymuse View Post
    The image the thumbnail leads to is a screenshot of the map at 100% and it still shows jagged edges. The thumbnail itself looks okay, though. I'm not sure what size I'd need to make the map for it to look good at print size. :/
    Something is wrong in your screenshot - I doubt it was taken at 100%. Not only the lines are pixelated - EVERYTHING have the same "pixel size" - the background and shadows also have "too big pixels". When I open the screenshot in Photoshop the real pixels are exactly half the size of the "pixelation".
    You say you have made an image with both "jagged" and smooth lines, can you post such an image?

    As I see it you may have resized the image by doubling the resolution from 150 to 300 dpi and using the "nearest neighbor". Or you have made a screenshot at exactly 200%. Or the screenshot was increased in size after the screenshot was taken (not likely).

    Could you please attach the Photoshop file?

  10. #10
    Guild Expert Facebook Connected Meshon's Avatar
    Join Date
    Nov 2009
    Location
    Edmonton, Alberta, Canada
    Posts
    1,167

    Default

    Hi just a quick note about how to do the Shape Burst. I'm not certain that it will help you here, but it's a neat feature that I've found useful. In the Stroke layer effect, switch Fill Type to Gradient and then in the new options that come up just choose Shape Burst from the style list. You might have to click the Reverse check box.

    Regarding resolution, you need to know what the final printed size will be and then multiply that by 300 to get the pixel size for your map. So if the printed size is 6 inches wide then your file needs to be 1800 pixels wide.

    I hope that helps, and that you get this resolved satisfactorily, it's very frustrating when your layer effects don't act the way you want them to. I've been there.

    cheers,
    Meshon

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •