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

White outline around every pixel


Recommended Posts

  • Staff

Hi Manfred11,

These look like anti aliasing lines has your design been aligned to whole pixels at all? I recommend trying the suggestions found here: https://forum.affinity.serif.com/index.php?/topic/126544-white-line-in-exported-images-via-export-persona/&do=findComment&comment=695290

Thanks
Callum

 

Please tag me using @ in your reply so I can be sure to respond ASAP.

Link to comment
Share on other sites

Any chance you can upload an afdesign file of the  background?


There a quite many possible reasons causing this issue.

  • Objects not perfectly aligned to integer position (or size)
  • rotated objects / anti-aliasing
  • Rectangular vector objects aligned adjacent to each other, exported, then zoomed / stretched

To avoid the issue, you may use objects overlapping (one atop the other) if possible, or using a backfill layer created from all objects added together.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Thank you. I can reproduce the SVG issue.

Looking into the file with a text editor (notepad++) it seems every rectangle gets transformed with factors slightly off from 1.0. This could cause the issue.

I'm not an expert at all regarding SVG.

The transformation could be "by design", or an bug caused by Affinity during export, or based on selected export settings-

Hope the vector / SVG experts from the forum can step in at this stage.

 

image.thumb.png.3e859bbb4a2ff5036c04fb56b41205d0.png

I recreated a 16x11x100px file from scratch:

  • create 1 rectangle (avoiding any fractional position / size)
  • copied and moved by 100px down 10 times (using power duplicate)
  • copied column and moved by 100px 15 times using power duplicate

The file exports cleanly as SVG.

 

So i assume your file may have some edit steps in history which triggered Affinity to start this erroneous transform which leads to rounding issues.

 

Assuming this is actually a bug, i recommend to file a bug report in the dedicated sub-forum. Your vectors seem to be perfectly aligned and sized with whole numbers, i cannot spot the reasons for Affinity going into wired transform matrix with fractional numbers.

 

16by11.afdesign

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Interestingly, after loading svg back into ADesigner (desktop), each square has an exact position, but is slightly larger.
On the contrary, this should cause the gaps between the squares to disappear but still be visible (see 100% display).

image.png.a7e26cdd95bb05368f6d8a2dbf547099.png

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
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.

Link to comment
Share on other sites

18 hours ago, manfred11 said:

exporting to svg in another software,then export to jpeg or png-white lines round each pixel.

@manfred11 I dl'ed IseeUCopy, changed the fill in background rectangle to black and zoomed in on a join. The black line is evident in Designer when zooming, suggesting that the rectangle is not perfectly aligned with the one above. However, when checking size and position with Transform Studio it all looks good. I think it’s the way edges are aligned in Designer. There is a known issue with clipping that reveals edge pixels, I think this may be related. I changed a few outlines from black to fill colour and black outline disappears. Shouldn’t matter but shouldn’t happen in clipping either.

Seems likely to be related bug. Just my 2cents.

34AEB192-89B0-49D9-A279-495584C128DE.png

63996072-0C60-429E-BD07-7EBA0E630DAA.png

M1 IPad Air 10.9/256GB   lpadOS 17.1.1 Apple Pencil (2nd gen).
Affinity Photo 1.10.5 Affinity Design 1.10.5 
Affinity Publisher 2, Affinity Designer 2, Affinity Photo 2 and betas.

Official Online iPad Help documents (multi-lingual) here: https://affinity.https://affinity.help/ 

 

Link to comment
Share on other sites

7 hours ago, DM1 said:

I think it’s the way edges are aligned in Designer.

I don’t agree to this part.

When you create the same document from scratch, you get perfectly aligned rectangle which export to SVG without the false transformation values, and nothing shines through at the edges. But you can still see rounding issues like x.yz e-15 instead of zero in exported SVG.

Something must have happened  during editing that triggered Photo to wrongly scale and shift the rectangles, while wrongly showing perfectly integer values in transform panel.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

56 minutes ago, NotMyFault said:

Something must have happened  during editing that triggered Photo to wrongly scale and shift the rectangles, while wrongly showing perfectly integer values in transform panel.

It’s a shame iPad version shows only one decimal place so that such small incremental change in size is not evident.
Hopefully mods will come back and investigate further. Psenda reports interesting change to rectangle  size when loading svg file back to desktop and viewing in transform panel. But no change to rectangle position that I could see from his screenshot. 

M1 IPad Air 10.9/256GB   lpadOS 17.1.1 Apple Pencil (2nd gen).
Affinity Photo 1.10.5 Affinity Design 1.10.5 
Affinity Publisher 2, Affinity Designer 2, Affinity Photo 2 and betas.

Official Online iPad Help documents (multi-lingual) here: https://affinity.https://affinity.help/ 

 

Link to comment
Share on other sites

Just to be clear

The one uploaded here was completely done from scratch in affinity

round numbers for the canvas ,and round numbers for the pixels.

so I don’t think I have made a mistake.

i discovered a bug similar to this in c4d (3d software) 

each time a calculation was done,your points are moved 0,0000001 mm or so

thing is after hundreds of edits it starts adding up.

 

Link to comment
Share on other sites

9 minutes ago, manfred11 said:

so I don’t think I have made a mistake.

Absolutely, i didn’t want to say anything in that direction. The mistake is solely on Affinity’s side.

I created a sample document, but didn’t recolor the rectangles individually. How did you assign the individual colors?

Did you resize at any time?
Did you resize, adjust document setup (spread / margin) ?

again, it’s not saying you made a mistake, it’s about trying where Affinity acts erratic.

We have quite a few similar issue reports, but i couldn’t identify which (perfectly correct from user perspective) action triggers the issue.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

As I recall

There are 16 pixels in the width and 11 in the height 

so I created a file 1600 x 1100 pixels

then on that file 1 pixel of 100 x 100  (snap to grid-covered the 1600x1100 perfectly)

think i duplicated it 16 times with snapping,one next to the other. 
snap to grid was used.

one bar of 16 pixels was duplicated 11 times

Row 1 duplicated became row 2

Row 2 duplicated became row 3  etc

Again with snap to grid

then i imported the original,placed it half over - colored each pixel with the color chooser-pippet on the left.

each time a row was colored,i deleted a row from the original.

that’s as close as I can remember.

 

Link to comment
Share on other sites

I now get the same issue, on iPad. 

Workaround: add stroke of 0.5px in same color as fill. nothing shines through any more.
This could mitigate  the issue in your composition, but not in general.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

17 hours ago, NotMyFault said:

Workaround: add stroke of 0.5px in same color as fill. nothing shines through any more.

In the screenshots I posted initially I simply changed the black (0px) outline stroke to the fill colour and that stopped the bleed through of background as seen in bottom left corner of screenshot (where changes were made). Increasing outline stroke to 0.5px should allow for larger errors to occur without bleed through.
 

18 hours ago, manfred11 said:

Thanks for your time,but that is a very complicated solution.

for something like the explosion it would really take a lot of time

It’s possible to select all rectangles based on same fill/stroke colour (in context submenu) then recolour strokes in one hit. You would have to repeat this for each different colour. Still a painful process.

M1 IPad Air 10.9/256GB   lpadOS 17.1.1 Apple Pencil (2nd gen).
Affinity Photo 1.10.5 Affinity Design 1.10.5 
Affinity Publisher 2, Affinity Designer 2, Affinity Photo 2 and betas.

Official Online iPad Help documents (multi-lingual) here: https://affinity.https://affinity.help/ 

 

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.