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

Struggling with strokes and exports sizes ...


Recommended Posts

In the attached example, I created a document that is 2048 x 1536 pixels in size (iPad Retina size).  Using Draw Persona, I inserted a rectangle that also is 2048 x 1536 pixels in size.  Then I used the Pen Tool to add a horizontal line that is exactly 2048 pixels long.

 

When I group the rectangle and the line, and then export the group using Export Persona, the resulting PNG file is 2056 x 1536 in size.  Somehow, 8 additional  pixels are being added to the horizontal dimension.

 

I know that I can shorten the line length to 2042 pixels, in which case the resulting PNG file is produced at the correct size of 2048 x 1536.  But then the line does not quite reach the edge of the canvas, and there is color leak from the image behind the line (in this example, the rectangle).

 

A difference of 8 pixels might not sound like much, but it is visible on an iPad screen.  Does anyone know how to draw a horizontal line that reaches exactly to the edge of the canvas, and that then can be exported using Export Persona without additional pixels being added?

Temp.afdesign

Link to comment
Share on other sites

In your temp file, if I change the line end to butt cap, it moves slightly to the right. Move it back 8 pixels to the left & everything should work as expected.

 

EDIT: Sorry, I described that very poorly. The line is actually a few pixels offset to the right to begin with, but you can't see that very well because the square caps obscure it. After changing it to have butt caps, it is easier to see that if you zoom in enough on the left side of the rectangle.

 

Move it to the left until the Transform panel shows its x position as 0 px & everything should be as you want it.

Edited by R C-R

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
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

First, thank you for helping me with this.  I'm afraid, though, that I'm still not getting it.  I've updated my example (attached via Dropbox link below) to ensure that the horizontal line is exactly 2048 pixels in length, and both ends of the line terminate with butt caps.  I can visually see that both ends of the line are exactly flush with the edges of the canvas.  But when I export the grouped item with Export Persona, I still get a file with 8 extra pixels (2056 pixels).  Is there another setting somewhere that controls this?

 

https://dl.dropboxusercontent.com/u/53682537/Test.afdesign

Link to comment
Share on other sites

OK, I see what is happening but I don't know why. When you switch to the Export Persona the document is "auto sized" to 2056x1536. You can either use the Slice tool to resize it before export, or more simply, export from the Draw Persona, which will default to 2048x1536.

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
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

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.