6 Replies Latest reply on Oct 28, 2013 3:18 PM by rob day

    Pixels only...

    therealrgbk Level 1

      I have a grid which is 1px by 1px, with 1 subdivisions. I'd have thought that this would allow me to create and move objects on the page which always fell on numbers, not integers... i.e. 4px, not 4.309px.

      As a UI designer, I'd never, ever have a div be set to 4.309px. Everything is rounded up. Since InDesign is so intent on being web-friendly, I'd have thought that this most basic of needs would be covered. Can I suggest, if there is no solution to this by other forum readers, that Adobe consider an option to the lines of "Intent: Print or Digital" and then guys like me can design away happier than ever.

      It can't be that hard. Photoshop is doing it already, and recent versions even have the "Align Edges" option for vector shapes.

        • 1. Re: Pixels only...
          Ton Frederiks Adobe Community Professional

          Do you have: View > Grids & Guides > Snap to Document Grid on?

          Also usefull to make sure that your lines fall on the whole pixels.

          By default a line is aligned to the centre of the stroke, causing it to cover 2 half pixels.

          If you want to change that behaviour for the open document, make sure you have nothing selected and choose either Align Stroke to the Inside or Outside from the Stroke panel.

          If you want that behaviour for all new documents:

          Close all documents, select a stroke of 1 pt and change the Align in the stroke panel.

          • 2. Re: Pixels only...
            therealrgbk Level 1

            I will try the stroke thing out and let you know. Thank you. 


            Sent from Mailbox for iPhone


            On Fri, Oct 25, 2013 at 8:50 AM, Ton Frederiks <forums_noreply@adobe.com

            • 3. Re: Pixels only...
              rob day Adobe Community Professional & MVP

              There are a couple of things you have to do if you want  to draw and position objects as whole numbers.


              Below I have my grid set to 100 pixels with 100 pixel increments, zoomed in to 600%. The object measurement and position depends on the Transform panel's transform anchor point, so you can't set the anchor point to one of the center points, you have to select one of the corners. The center point measures the x y as the center of the object.


              Also, as Ton mentioned you have to set strokes to inside or outside and you should check Dimensions Include Stroke Weight from the Tranform flyout menu.


              With this setup and with Snap to Grid selected, rectangles will snap to a 1 pixel grid as you draw them. If you are moving existing objects with your mouse, you have to be zoomed in for snapping to work, so setting your cursor key preference distance to 1 pixel and using your arrow keys can be better. Shift-arrow moves 10 pixels




              1 person found this helpful
              • 4. Re: Pixels only...
                therealrgbk Level 1

                Hi Rob, this is appreciated, I'm going to do all this now!

                • 5. Re: Pixels only...
                  therealrgbk Level 1

                  So here's an update on this method.. basically it turns off smart guides, literally: http://forums.adobe.com/message/5794946#5794946

                  Back to the drawing board.

                  • 6. Re: Pixels only...
                    rob day Adobe Community Professional & MVP

                    In CS6 on OSX 10.8.5 if I turn off Snap to Grid and turn on Smart Guides with the setup I'm showing in #3, I always get whole numbers when I draw. The rulers have to be set to pixels–it looks to me like if units are set to pixels Smart Guides are smart enough to know you want whole pixels.