: Rasterizing circle to exact size I have created a circle in Illustrator with a radius of 12px. Now I'm trying to rasterize this into a .png from Photoshop to have the exact same size, but
I have created a circle in Illustrator with a radius of 12px.
Now I'm trying to rasterize this into a .png from Photoshop to have the exact same size, but anti-aliasing is messing things up and the height is actually 11px instead of 12px.
I tried both, exporting the .png from AI and opening the .ai file from Photoshop but I get the same result. So how can I rasterize my vector to match the desired size?
More posts by @Shelley591
3 Comments
Sorted by latest first Latest Oldest Best
I ask now rhetorically: "What happens when you set the center point (x,y origins) of the object to integers?"
When the origin is set as a fraction of a pixel, when the object is rasterized, there will be rounding of fractions (probably down to the nearest integer).
In my humble opinion, AI should not allow you to specify fractions of pixels, but there it is.
Make sure your shape is placed on whole pixel values (ie, X:851px and not X:851,728 px)
If your object is aligned to the pixel grid, antialiasing won't make it bigger.
You can do this easily by selecting the option "Align to pixel grid" in the Transform panel (if you don't see it, select "show options" from the flyout menu)
To do this automatically for new objects, in the transform panel options choose "Align new objects to pixel grid"
Adobe Fireworks is ideal for stuff like this. You can create, align, scale, resize vector graphics pixel perfect, and export them as numerous formats, including PNG.
You can even define where the color edge is drawn, inside vector shape, in the middle of the vector shape path, or on the outside.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.