vitaprimo Posted June 4, 2023 Posted June 4, 2023 I have a grid of 128px sq. placed every 200px apart, the objects in each artboard are centered with plenty of margin for shadows and other pseudo invisible objects however, in Export persona slices are created 128x129, and put at x:-1 y:0 or x:0 y:-1, which doesn't seem like a lot, except when you export 8x the size it is quite noticeable, though even a single pixel messes things up. It's not even the designs with shadows the ones messed up, it wouldn't be great either but at least there'd be an explanation. I've been fixing them one by one but they fight back; when I change positioning, it "corrects" size—that kind of thing. It's double the work. Is there a way to do this in bulk? Export Persona is like another app to me. Thanks. Quote
Alfred Posted June 4, 2023 Posted June 4, 2023 For reasons that I’ve never understood, even if your artboards are exactly 128x128 pixels each the exported width and/or height will be one pixel more for any artboards that are not aligned to the pixel grid. Circulus 1 Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)
Old Bruce Posted June 4, 2023 Posted June 4, 2023 3 hours ago, Alfred said: For reasons that I’ve never understood,... I think it has to do with Slices being integer Pixels in size and are somehow rigidly fixed to the Document pixel grid. It just seems very weird in that an Artboard can have a pixel grid and items placed and sized to that pixel grid are integer pixels co-ordinates and sizes. Yet on export their slice co-ordinates and sizes are made according to the Document wide Pixel Grid. Quote Mac Pro (Late 2013) Mac OS 12.7.6 Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7 | Beta versions as they appear. I have never mastered color management, period, so I cannot help with that.
vitaprimo Posted June 5, 2023 Author Posted June 5, 2023 But… they ARE aligned perfectly. You can zoom in forever without a decimal point in the coordinates. Artboards are copies of the same because they have guides (another thing that can't be mass-applied) so I was careful of duplicating with ⌘J then moved with the transform panel. Other designs I'd just ⌥drag it. Also, you'd think they'd be misaligned all slices in a given axis, but no, some are, some aren't. It's very weird. Oh well, I'm nearly finished. There were a lot of artboards. I'd hate if I were doing this for work. Thanks nevertheless. 😃 Quote
R C-R Posted June 5, 2023 Posted June 5, 2023 16 hours ago, vitaprimo said: But… they ARE aligned perfectly. You can zoom in forever without a decimal point in the coordinates. Not sure what you mean about zooming in since that has nothing directly to do with pixel alignment. One thing to check is what the decimal places for pixels is set to in Preferences/Settings -- make sure it is set to 4 or more to avoid the Transform panel showing rounded values. Then check the coordiantes of each artboard. Quote All 3 1.10.8, & all 3 V2.5.7 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Pšenda Posted June 5, 2023 Posted June 5, 2023 On 6/4/2023 at 4:49 PM, Old Bruce said: I think it has to do with Slices being integer Pixels in size and are somehow rigidly fixed to the Document pixel grid. It just seems very weird in that an Artboard can have a pixel grid and items placed and sized to that pixel grid are integer pixels co-ordinates and sizes. Yet on export their slice co-ordinates and sizes are made according to the Document wide Pixel Grid. Yes, Serif already explained it here. And by the way, it's also why Slices can't be snapped to grids and guides - they're just in a different/incompatible space. Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.
Pšenda Posted June 5, 2023 Posted June 5, 2023 20 hours ago, vitaprimo said: they ARE aligned perfectly. You mean "pixel perfect"? Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.
LionelD Posted June 7, 2023 Posted June 7, 2023 Hi, I’ve had similar issues in latest AD2 on iPadOS 16.5. On 6/4/2023 at 7:00 AM, Alfred said: For reasons that I’ve never understood, even if your artboards are exactly 128x128 pixels each the exported width and/or height will be one pixel more for any artboards that are not aligned to the pixel grid. In my case I “fixed” the problem by realigning my artboards using Transform, and then repositioning my Slices to the correct pixel coordinates. Which leads me to believe that ArtBoards can reside at fractional pixel locations. By way of context, I often use shapes like triangles and regular hexagons (congruent to 6 X equilateral triangles),so some measures (height of equilateral triangle) are fractional pixels - correctly. Export Persona is quite the adventure. I had one file where Export resolutely insisted on changing X/Y entered as 4500.0 to 4500.1 until I repositioned my artboards. And more exciting when I tried working in other units (cm) very briefly, so I live in a pixel world. I can enter dimensions in units other than pixels, but Export Persona automatically converts to pixels, very merry when you try to use inches for A4 paper…. Hope this helps, and/or informs. Quote
LionelD Posted June 7, 2023 Posted June 7, 2023 On 6/5/2023 at 5:21 PM, Pšenda said: Yes, Serif already explained it here. And by the way, it's also why Slices can't be snapped to grids and guides - they're just in a different/incompatible space. Hi @Pšenda, are you able to provide a link to Serif’s explanation, please? I need to read it, thanks. Regards Quote
Alfred Posted June 7, 2023 Posted June 7, 2023 6 minutes ago, LionelD said: Which leads me to believe that ArtBoards can reside at fractional pixel locations. Artboards can indeed reside at fractional pixel locations (and whenever they do, the pixel dimensions of the objects they contain will increase on export). Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)
Pšenda Posted June 7, 2023 Posted June 7, 2023 5 minutes ago, LionelD said: are you able to provide a link to Serif’s explanation, please? I need to read it, thanks. For example: Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.
Pšenda Posted June 7, 2023 Posted June 7, 2023 7 minutes ago, Alfred said: Artboards can indeed reside at fractional pixel locations (and whenever they do, the pixel dimensions of the objects they contain will increase on export). I'll just add: Alfred 1 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.
LionelD Posted June 7, 2023 Posted June 7, 2023 @Pšenda, @Alfred thanks, off to do some reading. Regards Lionel Alfred 1 Quote
Pšenda Posted June 7, 2023 Posted June 7, 2023 2 hours ago, LionelD said: In my case I “fixed” the problem by realigning my artboards Just for information - the position of the Artboards is defined by the position of the "Origin" Artboard - i.e. the leftmost and topmost one, which is always at position 0, 0. Very easily (by moving or adding new artboard before/above this Origin artboard) you can mess up the right one (Pixel perfect) positions of the other artboards, or you can correct them on the contrary - by correcting the position of the Origin artboards by the necessary offset, the positions of the others will also be aligned, so they do not have to be corrected one by one. LionelD and thomaso 1 1 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.
LionelD Posted June 7, 2023 Posted June 7, 2023 @Pšenda Well, that’s probably the most informative thing anyone has said to me the whole year - thanks. I did not know that. Amazing where we hide life’s little mysteries. Have fun in Prague - I think it’s one of the most impressive cities in the world. Regards Pšenda 1 Quote
thomaso Posted June 7, 2023 Posted June 7, 2023 1 hour ago, Pšenda said: the position of the Artboards is defined by the position of the "Origin" Artboard - i.e. the leftmost and topmost one, which is always at position 0, 0. Good point! – The term "Original" Artboard can be misleading as soon any later artboard gets an according position left OR above this initial artboard: It gets more complex if the leftmost artboard is NOT the topmost artboard, then two of two artboards can have one perfect zero and one imperfect decimal position value, for instance: LionelD 1 Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1
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.