Jump to content
You must now use your email address to sign in [click for more info] ×

Export Persona automatically sizes


Recommended Posts

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.

Link to comment
Share on other sites

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.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

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.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

You may need to share a file that demonstrates the issue, if the ideas mentioned so far haven't helped.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

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:

image.png.0efc70989eedf1452f0af94400f71178.png

The box in the lower-left is also on a .5px boundary.

Trying to export your slice via the Export Persona, I see:

image.png.637bbf857199c5eccae1fecd84c44bd4.png

I moved the group so it's on an integer pixel boundary:
image.png.7d2d6157897842445cb5f7a67c073b1b.png

The Export Persona then shows just what you want it to show:

image.png.3958f81c9169627e081188c1752d3126.png

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

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:

image.png.0efc70989eedf1452f0af94400f71178.png

The box in the lower-left is also on a .5px boundary.

Trying to export your slice via the Export Persona, I see:

image.png.637bbf857199c5eccae1fecd84c44bd4.png

I moved the group so it's on an integer pixel boundary:
image.png.7d2d6157897842445cb5f7a67c073b1b.png

The Export Persona then shows just what you want it to show:

image.png.3958f81c9169627e081188c1752d3126.png

 

Oh, I see! I must have misunderstood your post from before as well XP Thanks a bunch!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.