integer calculations bug?

J
Posted By
Joey33
Feb 5, 2007
Views
320
Replies
3
Status
Closed
I’ve been searching for a solution to crisp edges in shapes and quite accidentally I discovered that PS miscalculates integer values.

If you display a grid (1×1 px) and turn on ‘snap to gid’, see what happens with, for example, a guideline.

If you drag it onto the screen under 16x zoom, it snaps perfectly to the pixel grid, falling dead on integer values:

www.joey.win.pl/ps/guide1.gif

but try moving it a few pixels right or left. The guideline gradually deviates from integer values and lands in between pixels
(whereas it should move with 1px ‘leaps’):

www.joey.win.pl/ps/guide2.gif

at some point reaches the middle of the way and finally snaps to an integer-value pixel perfectly again.

It takes a ‘cycle’ of several pixels until it is in integer values again. The same thing thus happens with shapes and so they are antialiased when, for example, resized.

To sum up, guidelines should adhere to the pixel grid and they do not. Despite 1x1px grid they land somewhere in between pixels and shapes aligned to them get fuzzy borders.

Shouldn’t it move pixel after pixel and align with the grid?

Regards to all forum Users,
Joey33

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

MJ
Mike_J_Sargent
Feb 5, 2007
This is a known bug, check out the following link:

<http://www.adobeforums.com/cgi-bin/webx?128@@.3bc1e65d>

Regards

Mike
J
Joey33
Feb 5, 2007
This is a known bug, check out the following link:

<http://www.adobeforums.com/cgi-bin/webx?128@@.3bc1e65d>

Just before I checked the-above site I made experiments with the units, changed them from inches to pixels and vice versa and miracle happened!

The grid is perefectly aligned to the ruler, finally the app works as it should.

I saw that you did a similar ‘trick’. So is it only about such resetting the units?

And do you happen to know if adobe is going to address the issue anyway? I saw on the-above site that people were intending to file a bug report.

Regards and thanks for help,
Joey33
MJ
Mike_J_Sargent
Feb 6, 2007
No need to file a bug report, Chris Cox (the last poster in that link), who is a senior engineer on the Photoshop team at Adobe has noted it as a bug.

As to whether it gets fixed soon, I guess it depends on their priorites.

I’ll have to check it out on the CS3 beta.

Mike

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

Related Discussion Topics

Nice and short text about related topics in discussion sections