Skip to main content
laurenh22769
Known Participant
June 23, 2017
Question

Lines in patterns in Photoshop

  • June 23, 2017
  • 6 replies
  • 11205 views

Hi-

Would anyone know what is causing these faint lines to appear in the pattern? (see top row of ducks) I created the patterns in Illustrator for an invitation & the lines are not there, not matter how much I zoom in. When I open them in Photoshop to save as a JPG the lines are there. Even if I export as a JPG from Illustrator and open in PS...lines! Some are cross hair looking so I am not sure if this is from the pattern tool. I have them in the polka dot pattern that is part of this invite too so it's not just the shape. I thought maybe if I change from a hex pattern to offset brick it would help, but it isn't.

Thanks,

Lauren

6 replies

laurenh22769
Known Participant
June 28, 2017

Rayek, what would your solution be please?

rayek.elfin
Legend
June 28, 2017

The reason for those seams is very, very simple: you are not working pixel-precise, and Illustrator (or Photoshop during import) is then forced to render a decimal pixel along those edges - which results in anti-aliased seams which are (very) noticeable in a pattern.

The solution is to use exact pixel dimensions in your clipping masks. And the exported artboard or pattern size must be pixel-precise as well. NO DECIMALS!

Steps:

0) create an artboard at exactly the pattern's size. For example, 128x128px size. Or create a new file with these dimensions.

1) create an invisible rectangle at exact non-decimal pixel dimensions. For example, 128x128px. Align this rectangle to the artboard. Use the input fields to make absolutely certain the rectangle is positioned at 0 and 0 (x/y) and the width and height are 128px.

2) Create your first pattern object. Drag this to the swatches to create a pattern.

3) Assign this pattern to the rectangle you drew earlier.

4) double-click on the pattern swatch, and design away. When finished, return to the canvas.

5) drag the asset to the Asset Exporter, and choose your settings. Export.

If you kept the artboard and rectangle at exact pixel sizes, you should no longer have any seams.

laurenh22769
Known Participant
June 27, 2017

LOL! Semaphoric! Marking this one as "helpful".

laurenh22769
Known Participant
June 27, 2017

Hi Stephen,

Thank you. I did try it & it worked. I just don't know how large the files will get if I apply 7x. Does it increase file size? Ultimately, I am flattening to a JPG for customers. The patterns are backgrounds for the most part.

On my end...I did a test print of my saved file w/ the unchecked box and I didn't see any issues with the visual. Going forward I will save my pattern as a hi-res JPG & then apply to the graphics.

Take care,

Lauren

Semaphoric
Community Expert
Community Expert
June 27, 2017

I'm glad you have all your ducks in a row! (I've been waiting all week to say that!)

laurenh22769
Known Participant
June 25, 2017

I will have to try that. Thank you Trevor.

Trevor.Dennis
Community Expert
Community Expert
June 25, 2017

I'd prefer to define the pattern in Photoshop starting with a single duck, or the shape of your choice.  It's almost a mathematical process.

You need the grid turn on with a suitable spacing.  (Tip:  a quick way to alter grid spacing is to adjust the image resolution with Resample turned off.  Increasing the resolution also increases the grid spacing.  This is just a wee bit quicker than going into Preferences).

Lay down your first object, be it raster or vector shape, and start Free Transform.  Nudge the centre handle to coincide with a grid intersection and OK it.

Copy the shape and repeat that a couple of times moving each one so that its FT centre handle coincides with the relevant grid intersection.

With three objects, merge the layers. Copy and move this time using the centre handle.

With three rows, merge into a single layer, and drag out some guides to form your pattern box

You can now make a selection that snaps to the guides, and copy to a new layer

You now have a perfectly reaping pattern.  Note you will need to rasterize if you used shape layers.  Trim the image with it set to transparent pixels (having turned off the other layers, and define your pattern.

Stephen Marsh
Community Expert
Community Expert
June 27, 2017

Trevor, sadly sometimes one has to deal with what they have, rather than recreate the wheel.

Lauren, the problem with turning off anti-aliasing is that all other curved or angled art will probably look like garbage, however the pattern tile errors will be removed!

There IS a way to have your cake and eat it… This also works for flattened PDF art that has atomic region stitching errors when rasterized.

The key is that the image is rasterized with TRANSPARENCY. This does not work with flattened images, it requires transparent pixels.

Simply apply the image to itself in normal blend mode 100% opacity at least 5 times, I like at least 7 for safety. Easy to put into an action. Sounds crazy, but it works! This was driving me mad, how can doing nothing result in something? Well it is not really doing “nothing” as it IS affecting anti-aliased edges…

yankakova
Participant
March 14, 2020

I can't believe I finally found an advice that worked! 

Mohammad.Harb
Community Expert
Community Expert
June 24, 2017

in illustrator saving as JPG dialog box, Choose Art optimized from the Anti-aliasing options

laurenh22769
Known Participant
June 25, 2017

Thanks. I tried that and it didn't work. I also tried exporting as a PSD file and still no luck. I ended up unchecking the "anti-alias" when opening the AI file in PS & that seemed to do the trick.