Jump to content
MoRLOK

exporting backgrounds, there is an extra 1-pixel wide frame line

Recommended Posts

Export error. Help me figure this out (may be not a bug).

I export resources for game developers
They complain that when exporting backgrounds, there is an extra 1-pixel wide frame line

I did an experiment. Here are his results. How do I get the program to remove this pixel? 

Here are examples before and after export.  I have a lot of resources and fixing them with my hands in another editor wasn't the right option for me

Help me understand my problem

 

Affinity Designer 2019-07-01 02.13.30.jpg

Share this post


Link to post
Share on other sites

Make sure that the affected objects have their X/Y coordinates (see the Transform panel) that are integer pixel values, and their Height and Width are integer pixel values. Note that you may need to increase the number of decimal places displayed for pixel measurements, using Preferences, User Interface.

It is easiest, usually, to ensure this by setting Force Pixel Alignment in the Snapping options, and by setting Move by Whole Pixels off.

Thanks for the example. If you look at the placement of the layer "back ground V3" you will see:

image.png.e98681cdb502dcf583d4765c319f8dcb.png

If you nudge it to X=590 and Y=1388 I think you will resolve your problem.


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.647 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.647 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.648 Beta.

Share this post


Link to post
Share on other sites

I tried to work with the frame parameter and set it to zero.
and noticed that the editor changes the size of my image by adding 1 pixel

 

Affinity Designer 2019-07-01 02.25.35.jpg

Share this post


Link to post
Share on other sites
6 minutes ago, MoRLOK said:

Your advice helped me, but it will be difficult for other users to remember about it (hand-aligned positioning) 

You're welcome.

It is something that everyone needs to get used to, unless eventually Serif decides to make a change. Many users have complained.

Hand-alignment should not normally be needed, just setting the options I mentioned to ensure that initially your objects are properly aligned.


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.647 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.647 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.648 Beta.

Share this post


Link to post
Share on other sites
7 hours ago, walt.farrell said:

You're welcome.

It is something that everyone needs to get used to, unless eventually Serif decides to make a change. Many users have complained.

Hand-alignment should not normally be needed, just setting the options I mentioned to ensure that initially your objects are properly aligned.

We give users the tools to create sub-pixel accurate documents, as well as the tools to enable them to align to whole pixels. Depending on the user's intentions, this is just an education issue - though we could perhaps improve things by giving a warning during export if objects aren't aligned to whole pixels.

Share this post


Link to post
Share on other sites
4 hours ago, Mark Ingram said:

though we could perhaps improve things by giving a warning during export if objects aren't aligned to whole pixels.

Thanks, Mark. Something like that would help.

But another thing I don't understand. When I export an individual artboard or a slice I've created, why should it matter if it starts at an integer X,Y position. Logically, once that object is exported, that exported version starts at 0,0 doesn't it? So as long as the size (dimensions) are integer pixel values, the entire object is consistent without adding an extra pixel. So, when exporting, why not base the addition (or not) of the extra pixel based on the size of the object (artboard, slice) being exported instead of on its origin position.

Or, provide an option to tell the Export Persona to do it that way.


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.647 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.647 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.648 Beta.

Share this post


Link to post
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.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.