Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Align selected art to pixel grid and Transform Panel

Community Beginner ,
Aug 09, 2018 Aug 09, 2018

Hi,

I'm getting confused with creating a perfect pixel icons. I am creating my icons by following all the correct methods such as the preference changes in Illustrator, 72ppi, etc.

I am making sure all shapes I create are not left at a decimal like number for X and Y. What I noticed is after I make sure the shapes have accurate full numbers that when I click on the align selected art to pixel grid after, the values change to .5 and over. What is it am I doing wrong?

Screenshots:

Before - Corrected the X and Y

Screen Shot 2018-08-09 at 20.18.51.png

After - Clicked on Align selected art to pixel grid

Screen Shot 2018-08-09 at 20.20.34.png

I'm open to any suggestions!

Thanks.

3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 10, 2018 Aug 10, 2018

It has a stroke of 3 px which is aligned to the center. The stroke needs to be sharp on the ouside, so the path needs to be on a half pixel. It will change when you set the stroke to 2 px.

Translate
Adobe
Community Expert ,
Aug 09, 2018 Aug 09, 2018

Your Proxy point is set to the center and your width is not an even number, it is 63 px. 64 or 62 or setting the Proxy point to any other place would not give you these decimal coordinates.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

"Align to pixel grid" is not about numbers, but about the look.

There might appear totally weird numbers, but as long as it looks OK, it is OK.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 10, 2018 Aug 10, 2018

Look: your icon size is perfect. X value is about the position and depends on the proxy point's placement. Choose for example  the left-center point on the pictogram and you'll have the perfect X value 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

I agree with Monika and Anna, don't worry about it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 10, 2018 Aug 10, 2018

Thanks for your replies guys. I wasn't aware about Proxy point!

Saying that, I've tried that and it still doesn't round of the numbers. I know it doesn't matter but I guess it's a learning curve for me to understand.

Screenshot:

Screen Shot 2018-08-10 at 10.43.57 AM (2).png

This aligned to pixel.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

That is a free form shape. and anti aliasing will always occur with these rounded forms.

Align go pixel is is ment to avoid anti-aliasing (softening) of rectangular shapes and horizontal / vertical lines.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 10, 2018 Aug 10, 2018

Ah, I see. So for free form shapes, the decimal numbers for Width and Height shouldn't matter when I align the pixel. I've saved it as PNG to see the quality and it looks perfect.

Going back to my first post, when I use the proxy point, my numbers still don't round up when I pick any of them (for rectangular shapes, etc).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

below on the left the proxy point is in the center and gives a decimal valur for the horizontal 51 px wide shape.

proxy.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 10, 2018 Aug 10, 2018

I thought I'd give it a go after seeing yours. Am I doing something wrong?

Centred:

Screen Shot 2018-08-10 at 2.18.42 PM (2).png

Left centred:

Screen Shot 2018-08-10 at 2.19.05 PM (2).png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

My horizontal pixelvalue was uneven, your vertical one. Try top or bottom

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 10, 2018 Aug 10, 2018

Tried top and bottom:

Screen Shot 2018-08-10 at 3.14.37 PM (2).png

Screen Shot 2018-08-10 at 3.14.42 PM (2).png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

Then they are not aligned to the pixel grid.

Look at the Pixel Preview.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 10, 2018 Aug 10, 2018

Strange, it is:

Screen Shot 2018-08-10 at 4.11.02 PM (2).png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

Snap to Pixel is Off...

Not so strange.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

It has a stroke of 3 px which is aligned to the center. The stroke needs to be sharp on the ouside, so the path needs to be on a half pixel. It will change when you set the stroke to 2 px.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

It is not aligned to the Pixel grid, Snap to Pixel is Off.

This is what I get with a 3 pt stroke and these coordinates:

Screen Shot 2018-08-11 at 01.31.07.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

And this is what you get when you click Align Selected Art to Pixel Grid:

Screen Shot 2018-08-11 at 01.34.29.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2018 Aug 10, 2018

Sorry , my mistake, mine was aligned to the inside, probably the default for Web documents.

My pixel based RGB documents always align the stroke to the center, so I did not notice that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 11, 2018 Aug 11, 2018

Thanks! That worked for me, I changed the centre of the stroke to outside and it worked.

Ton - Yep. I put Snap to Pixel back on after I realised when I posted the screenshot. No change. Thanks for helping me out as well. Monika's advice worked.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 12, 2018 Aug 12, 2018

Just something I came across tonight but I grouped the shapes together after creating the icon (96x96) which are aligned to the grid. I copied and pasted it onto 112x112 template, I scaled it slightly bigger and I hit align to grid but, the shapes inside the group looks jumbled, few shapes have slightly moved. I understand why but what can I do to rectify that?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 13, 2018 Aug 13, 2018

They need to be ungrouped.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2018 Aug 13, 2018

I have to separately scale them? I've ungrouped it but I select all of the objects and scaled it and still the same problem (I'm aware it's like being grouped if I select all)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 14, 2018 Aug 14, 2018

When all are ungrouped and you click the "Align selected artwork to pixel grid" button, then they should each align.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 14, 2018 Aug 14, 2018

I did that and the shapes move slightly making them out of place.

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