Highlighted

half pixel problem

New Here ,
Mar 10, 2020

Copy link to clipboard

Copied

I have a challenge where Photoshop creates half pixels / wrong pixels when i place vector graphics created in Illustrator.

I want the graphics placed in Photoshop to be pixels perfect, as it is in Illustrator.

 

I created this simple element in Illustrator , snaping to pixel grid:

Skærmbillede_031020_104641_AM.jpg

 

I added it to my CC library and placed it in a Photoshop document (same colour space and resolution):

 

Skærmbillede_031020_103128_AM.jpg

 

Same thing happens when I just copy-paste. 

Why does Photoshop not place the pixels like they were created in Illustrator?

 

My plan was to create a library of icons made in illustrator, but if they can not be placed/used in Photoshop as pixel-perfect, then I have a problem.

Adobe Community Professional
Correct answer by Kenneth Kawamoto | Adobe Community Professional

I can reproduce the issue Allan - Photoshop indeed adds unnecessary subpixel antialiases to straight whole pixel vector lines in some cases.

 

But there's no need to rasterise your 32 x 32 px vector icons in the first place. SVG was created for this purpose - display vector as vector in devices. If you rasterise your icons they will look awful - badly pixelated in retina displays.

 

Ultimately Phostoshop is not a right tool for UI design. Use dedicated tools such as https://www.adobe.com/uk/products/xd.html which handles vector natively 😄

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

half pixel problem

New Here ,
Mar 10, 2020

Copy link to clipboard

Copied

I have a challenge where Photoshop creates half pixels / wrong pixels when i place vector graphics created in Illustrator.

I want the graphics placed in Photoshop to be pixels perfect, as it is in Illustrator.

 

I created this simple element in Illustrator , snaping to pixel grid:

Skærmbillede_031020_104641_AM.jpg

 

I added it to my CC library and placed it in a Photoshop document (same colour space and resolution):

 

Skærmbillede_031020_103128_AM.jpg

 

Same thing happens when I just copy-paste. 

Why does Photoshop not place the pixels like they were created in Illustrator?

 

My plan was to create a library of icons made in illustrator, but if they can not be placed/used in Photoshop as pixel-perfect, then I have a problem.

Adobe Community Professional
Correct answer by Kenneth Kawamoto | Adobe Community Professional

I can reproduce the issue Allan - Photoshop indeed adds unnecessary subpixel antialiases to straight whole pixel vector lines in some cases.

 

But there's no need to rasterise your 32 x 32 px vector icons in the first place. SVG was created for this purpose - display vector as vector in devices. If you rasterise your icons they will look awful - badly pixelated in retina displays.

 

Ultimately Phostoshop is not a right tool for UI design. Use dedicated tools such as https://www.adobe.com/uk/products/xd.html which handles vector natively 😄

Views

1.1K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 10, 2020 0
Adobe Community Professional ,
Mar 10, 2020

Copy link to clipboard

Copied

Is the icon placed at a whole pixel location in Photoshop?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 10, 2020 1
New Here ,
Mar 10, 2020

Copy link to clipboard

Copied

The graphics has the dimentions 5 x 5 pixels. The top left reference point is placed at a whole pixel (center on a half).

 

I just made a new graphic where all reference points are at a whole pixel. When placed in Photoshop the result is just as incorrect - It creates wrong pixels. The result is the same no matter if I go through a library or if I copy-paste.

 

Skærmbillede_031020_113945_AM.jpg

Skærmbillede_031020_114033_AM.jpg

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 10, 2020 0
Adobe Community Professional ,
Mar 10, 2020

Copy link to clipboard

Copied

Export as raster out of Illustrator, what is the result?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 10, 2020 0
Adobe Community Professional ,
Mar 10, 2020

Copy link to clipboard

Copied

If I create a 5 x 5 (px) AI file with the artwork just like yours and open it in Photoshop, it opens exactly as is. The same for Place Embedded... and copy & paste.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 10, 2020 0
New Here ,
Mar 10, 2020

Copy link to clipboard

Copied

Started from skratch - New document, new graphics - Same problem.

 

Illustrator:

Skærmbillede_031020_012954_PM.jpg

 

Photoshop:

Skærmbillede_031020_012931_PM.jpg

This is driving me crazy. All vector points are placed exactly on the pixel grid.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 10, 2020 0
LEGEND ,
Mar 10, 2020

Copy link to clipboard

Copied

Did you turn off anti-aliasing for the Smart Object? 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 10, 2020 1
Adobe Community Professional ,
Mar 10, 2020

Copy link to clipboard

Copied

When you place embedded - just before you press Enter (or click on the tick)  look in the options bar and uncheck Anti Alias.

 

Remember to tun it back on when you are placing normal images

 

Dave

 

 

[Edit c.pfaffenbichler beat me to it]

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 10, 2020 1
New Here ,
Mar 11, 2020

Copy link to clipboard

Copied

I did try the anti alias option, but it's not the solution - I need the anti alias pixels for circles etc.

 

Here are a few other examples:

 

The vector graphics in Illustrator with a visual 1 px grid:Skærmbillede_031120_100340_AM.jpg

 

Here in Illustrator with the pixel preview on and then added to a library:

 

Skærmbillede_031120_100618_AM.jpg

 

This is what it looks like after placing the library item in Photoshop WITHOUT anti alias:

 

Skærmbillede_031120_100816_AM.jpg

 

And here with anti alias:

 

Skærmbillede_031120_101141_AM.jpg

 

Here's a comparison from the Illustrator rendering to the Photoshop placing of pixels:

 

Skærmbillede_031120_103519_AM.jpg

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 11, 2020 0
Adobe Community Professional ,
Mar 11, 2020

Copy link to clipboard

Copied

You can't have anti-aliasing both on and off. Photoshop is working correctly. If you want exact pixels, turn it off.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 11, 2020 0
New Here ,
Mar 11, 2020

Copy link to clipboard

Copied

The intention was not to have it both on and off. I want the half pixels, but I don't want Photoshop to create them where they shouldn't be. Like the example above - Illustrator shows a perfect pixel preview (this is how it should look), but Photoshop creates half pixels where non should be.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 11, 2020 0
Adobe Community Professional ,
Mar 11, 2020

Copy link to clipboard

Copied

You can't do what you want unless you import twice and manually mask the parts you want to keep.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 11, 2020 0
Most Valuable Participant ,
Mar 11, 2020

Copy link to clipboard

Copied

Half pixels do not exists you have a pixel or you do not have a pixel.  Photoshop is a pixel editor and Pixels are square. They can be any color and opacity. If the opacity's is less that 100% the background color below is blended in to render the image. If you  have antialis off Photoshop will not try try to smooth the looks of curves and lines not vertical  or horizontal. Every line and  curve will be stair cased except vertical and horizontal lines.  

 

AI previes shot ne like AI previes if you are passint vector graphis to AI.   If you past Pixels leyers AI will do render them  as square pixels.  AI rederineg of its vector object  is showing a square pixels gride but is but not filling the pixels ares with a single color.  It is redering a pixel using many display's pixels to displaye pixels that have shape that are not square.]]

image.png

image.png

 

What you want to do is pass Paths from photoshop to AI  for AI is a vector editor.  I do not install AI so I do not know the  best way to work between AI and PS

image.png

 

JJMack

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 11, 2020 0
Adobe Community Professional ,
Mar 11, 2020

Copy link to clipboard

Copied

Half a pixel cannot be displayed in Photoshop.
With your own hands, draw a similar shape in the Photoshop with the pen tool and see how Photoshop fills it.
 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 11, 2020 0
New Here ,
Mar 11, 2020

Copy link to clipboard

Copied

I have over 400 icons made in Illustrator. The icons was made in a 32 x 32 pixel grid, and all horizontal and vertical lines align perfectly with the pixel grid. The intent was to add all icons to a library so they can be used across Adobe apps and shared.

What still puzzels me is, if the vector points is placed perfectly in the pixel grid in Illustrator, why does Photoshop create these stray pixels (transparent pixels)?

 

Untitled-1.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 11, 2020 0
Most Valuable Participant ,
Mar 12, 2020

Copy link to clipboard

Copied

Photoshop does not support AI vector format anf cans not open and process AI vector files.  However is cab Import ther lied EPS files as a Raster layer.  When you Rasterize and AI file into Photoshop foe you set in a Highe resolition like 300 or 400ppi abd turn odd Photoshop Anti-aliased ny unchecking the check Box

image.png

It makes a world of difference

image.png

JJMack

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 12, 2020 0
New Here ,
Mar 12, 2020

Copy link to clipboard

Copied

Thanks for all the input - Photoshop obviously does not handle the Illustrator vector graphis very well. I will drop the plans for a library of icons.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 12, 2020 0
Most Valuable Participant ,
Mar 12, 2020

Copy link to clipboard

Copied

Photoshop does not support Vector file formats.  Turning off Antialiasing when you rasterize illustrator image will help you. But if you Place in illustrator files  Place creates what Adobe calls Vector Smart object. However there are no vector in Photoshop. These object are resized via vector graphics  by reimporting the vector file  resize the new size you do not see the resterize dialog the image  layer will have antialiasing.  You have to open the vector files to rasterize it with out being Ant--aliased

JJMack

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 12, 2020 0
Adobe Community Professional ,
Mar 12, 2020

Copy link to clipboard

Copied

Hi, in preferences, do you have snap vector tools and transforms to pixel grid?

 

Another thought, could you use a levels adjustment layer to "eat" the off-white edges?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 12, 2020 0