Ninjag-O-G Posted August 27, 2018 Share Posted August 27, 2018 Hello, I'm currently trying to figure out how to stop the export persona from changing the size of my slices. I have an object set of odd dimensions, ex. 513x513, but when I create a slice from that object the slice's dimensions are 514x514. I originally thought that it was just affinity giving the border a little but of cushion, but setting the rectangle size for 512x512 keeps it at 512x512. If there's a way to prevent this I'd love to know it, as I need very specific dimensions and I'm exporting dozens of these while having to change the dimensions manually. Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted August 27, 2018 Share Posted August 27, 2018 It is very likely that your object location is not on an integer pixel boundary (x or y coordinate, in the Transform studio, will show as, e.g., 541.2px rather than 541px or 542px). That causes Affinity to round the size up to account for the fractional pixel. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 17.7, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.7 Link to comment Share on other sites More sharing options...
Ninjag-O-G Posted August 27, 2018 Author Share Posted August 27, 2018 I don't think that's it, I have "move by whole pixels" selected and none of the transform integers have decimals. Quote Link to comment Share on other sites More sharing options...
R C-R Posted August 27, 2018 Share Posted August 27, 2018 25 minutes ago, WatcherMagic said: I don't think that's it, I have "move by whole pixels" selected and none of the transform integers have decimals. In Preferences > User Interface, you can set the "Decimal Places for Unit Types." This affects the display but not the internal precision of values. So make sure that is set to something greater than zero for pixels to make sure the numbers really are integers. Also, "Move by whole pixels" does exactly that, meaning if something is at 10.5 px it will force it to move by whole pixels to 9.5, 11.5, etc. So instead, make sure "Force Pixel Alignment" is set but not "Move by whole pixels" if you want or need to adjust the position of any pre-existing item on the canvas. Quote All 3 1.10.8, & all 3 V2.5.5 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 Link to comment Share on other sites More sharing options...
Ninjag-O-G Posted August 28, 2018 Author Share Posted August 28, 2018 On 8/27/2018 at 5:47 PM, R C-R said: In Preferences > User Interface, you can set the "Decimal Places for Unit Types." This affects the display but not the internal precision of values. So make sure that is set to something greater than zero for pixels to make sure the numbers really are integers. Also, "Move by whole pixels" does exactly that, meaning if something is at 10.5 px it will force it to move by whole pixels to 9.5, 11.5, etc. So instead, make sure "Force Pixel Alignment" is set but not "Move by whole pixels" if you want or need to adjust the position of any pre-existing item on the canvas. Decimal Places for Unit Types is already set to one; I tried setting it to two and resetting it with no effect. But thank you for that information, that helps Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted August 28, 2018 Share Posted August 28, 2018 You may need to share a file that demonstrates the issue, if the ideas mentioned so far haven't helped. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 17.7, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.7 Link to comment Share on other sites More sharing options...
Ninjag-O-G Posted August 30, 2018 Author Share Posted August 30, 2018 Here you are; fyi I've gone ahead and deleted and re-created a lot of objects in experimentation, right now this is basically just a grid of boxes DW_Heightmap.afdesign Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted September 2, 2018 Share Posted September 2, 2018 On 8/30/2018 at 6:05 PM, WatcherMagic said: Here you are; fyi I've gone ahead and deleted and re-created a lot of objects in experimentation, right now this is basically just a grid of boxes DW_Heightmap.afdesign Thanks. Looking at your box in the upper-left quadrant, I see the following in the Transform panel: The box in the lower-left is also on a .5px boundary. Trying to export your slice via the Export Persona, I see: I moved the group so it's on an integer pixel boundary: The Export Persona then shows just what you want it to show: Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 17.7, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.7 Link to comment Share on other sites More sharing options...
Ninjag-O-G Posted September 3, 2018 Author Share Posted September 3, 2018 On 9/2/2018 at 1:30 PM, walt.farrell said: Thanks. Looking at your box in the upper-left quadrant, I see the following in the Transform panel: The box in the lower-left is also on a .5px boundary. Trying to export your slice via the Export Persona, I see: I moved the group so it's on an integer pixel boundary: The Export Persona then shows just what you want it to show: Oh, I see! I must have misunderstood your post from before as well XP Thanks a bunch! Quote 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.