5argon Posted August 16, 2019 Share Posted August 16, 2019 Look at this 3 slices here, when I press Create Slice button one of them got 80 instead of 79 width. All of them has a slight variation, but essentially a copy and paste and no variation goes out of their common outer silhouette bound. RecordsBadges.afdesign Quote Link to comment Share on other sites More sharing options...
Staff MEB Posted August 16, 2019 Staff Share Posted August 16, 2019 Hi 5argon, This happens when the dimensions of the objects and/or their X,Y coordinates are not integer pixel values. If you change the doc units to pixels and check their X,Y coordinates and dimensions in the transform panel you will see there's decimal values there. Remove them/adjust object's positions and dimensions and all will export with the same size. Sean P 1 Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
5argon Posted August 26, 2019 Author Share Posted August 26, 2019 Hi, I have a follow up on this. I want to ask is it really a design that one must align an object to a whole pixel to ensure correct export? I think the correct requirement should be depending on object's size rather than it's coordinate. For example these are 4 empty artboards, all the same 1024x1024 integer size. Common sense would be : if I slice-export all these artboards I would get all 1024x1024 images. (For this instance it is a setup for icon design) However, because their artboard position (on "world" space, outside the artboard) aren't perfect integer, the resulting slices are either 1024 or 1025. icon20-2.afdesign Quote Link to comment Share on other sites More sharing options...
Hangman Posted August 26, 2019 Share Posted August 26, 2019 Whilst I don't disagree with you, I think perhaps the counter-argument might be to treat artboards with the same attention to detail as the graphics you add to them. When you create a normal page and likewise the first artboard (if created using the New Document dialogue) both are positioned using integer coordinates rather than sub-pixel positioning, so why not treat any subsequent artboards with the same level of accuracy (rather than positioning them 'semi-randomly') by simply using the 'Force Pixel Alignment' option. Whilst others may disagree, accepting this is the way Affinity software works and simply ensuring 'Force Pixel Alignment' is active when creating, duplicating, moving or positioning artboards isn't really an inconvenience, it's a single mouse click and it avoids any issues when exporting slices. Just my 2 cents worth... Quote Affinity Designer 2.4.2 | Affinity Photo 2.4.2 | Affinity Publisher 2.4.2 Affinity Designer Beta 2.5.0 (2402) | Affinity Photo Beta 2.5.0 (2402) | Affinity Publisher Beta 2.5.0 (2402) Affinity Designer 1.7.3 | Affinity Photo 1.7.3 | Affinity Publisher 1.10.8 MacBook Pro 16GB, macOS Monterey 12.7.4, Magic Mouse Link to comment Share on other sites More sharing options...
Staff MEB Posted August 27, 2019 Staff Share Posted August 27, 2019 Hi 5argon, Affinity Designer treats artboards like any other object. They are not independent entities on their own (e.g. canvas) and appear listed in the Layers tab as any other object. In fact you can convert them to objects and vice-versa if required (check menu Layer > Convert Artboard to Object and Convert Object to Artboard) and move/transform/align them as any other regular object. They simply have a few attributes disabled. Other than that they are subject to the same snapping/alignment operations as regular objects. The best way to ensure you get them positioned correctly is enabling Force Pixel Alignment from the start in the Snapping Manager (and Move By Whole Pixels disabled) and making sure you use cmd+click and drag (on canvas) to duplicate them instead of alt since it overrides snapping and by extension force pixel alignment. Quote A Guide to Learning Affinity Software Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.