Jump to content

Recommended Posts

Posted

Started to use AD2 a few months ago, and is the first time I'm exporting icons to png format.

Use inkscape for years, the export workflow is so simple: select, export. The result is almost perfect (better than Illustrator).

But in AD2, the exported icons are very blurred, and if I use the Export persona, the exported size is different.

Just tried some things like pixel view, grid align, etc.

Nothing works, not even close to inkscape.

Here are an example:

Original icon in vector format (AD2), dimensions are 38x39px
image.png.3048c6e15e8bde09a2e83ce0673ce0a2.png

 

Exported dialog in AD2, look at suggested dimensions, white space around and blurred lines:
image.png.eaacdaafe8c5277cea89824fb935d074.png

 

Result png (left) vs inkscape exported png (right):
image.png.89fb43b74c03d06301f3590e6dd885ae.png 

 

But... there's another thing very strange:

I'm working with an svg file made in inkscape,
- the existing icons exported using Export Persona are ok
- the new icons (created in AD2), still blurred

 

So, anybody has an idea how to improve the export?

I can use Inkscape for export, loved it when using linux for years, but now I'm a mac person and prefer the Affinity suite integration.

 

Thanks in advance!

 

 

 

 

Posted

I have attached my work files but the exports look about the same to me. I tried different resampling as well. You say your AD file is 38x39px yet the PNG you show says 48 x 46. Could you be resizing in AD but outputting actual size in inkscape? This could explain it.

 

Below is my output. The first row in 100% and the 2nd is blown up.

 

image.png.c7f5d6efcfe80b7a3be2bdca115c6514.png

PngTest_Files.zip

Posted

Welcome to the forums @LaPeGa

It looks like, from what you wrote and what’s in your screenshots, that you have a 38×39 pixel design that you are trying to export as a 48×46 pixel image.

If that’s what you are trying to do you will naturally get some blurring as the software will need to create ‘sub-pixels’ to cope with the dimensional differences (stretching and difference in aspect ratio).

If that’s not the problem then if you can upload the Affinity document we should be able figure out what’s wrong.

Posted

Hi @GarryP

Thank for the response.

I'm not trying to export in a different size, but when exporting the app suggests a different size.

Just did some tests, and the app have a problem with the lines at the border of the image:

Using the file given by @BlueLiner, I have this dimensions (44x44 at transform panel and export dialog):

image.png.b672346d50bdb78c0da8a811cf7daf46.png

I changed one of the green boxes for a yellow line, the app suggest 2px more in height:
image.png.84414be14869aea21d59cf48f62db7b2.png

 

8 hours ago, GarryP said:

Welcome to the forums @LaPeGa

It looks like, from what you wrote and what’s in your screenshots, that you have a 38×39 pixel design that you are trying to export as a 48×46 pixel image.

If that’s what you are trying to do you will naturally get some blurring as the software will need to create ‘sub-pixels’ to cope with the dimensional differences (stretching and difference in aspect ratio).

If that’s not the problem then if you can upload the Affinity document we should be able figure out what’s wrong.

 

Posted

@BlueLiner thanks for the time for made an example.

I tried export your file and is ok now, but I found something regarding to the stroke alignment.

I have this box with this stroke configuration, is all ok.

image.png.2820d557426cfca7e0cea91d7e6d49df.png

image.png.d2c70800893593b940c693f923eb7dff.png

 

But, when changing the stroke alignment, the export get blurred and the dimension change.

image.png.3b0f5b13631530e2c4029bfd2d67195e.png

image.png.6b1bdc82e4f295e684411d2dd20d92d4.png

Posted

Not sure this matters, but when I redrew your artwork in AD, I expanded the stroke to a curve before exporting to PNG. When I exported, I selected whole document set to 48 x 48 pixels. I am using AD 2.5.2 and my inkscape export was done using Inkscape v1.3.2. I have attached the SVG as well from Inkscape.

image.png.5e725e6fde6aa960cbaf9e0fb38f503b.png

PngTestd.svg

Posted (edited)
53 minutes ago, lepr said:

That's actually 40 x 40 px

Oh, I didn't count the pixels, just take the value from the Transform Panel, so maybe AD2 is counting / displaying something wrong? 

I was using a svg file generated in Inkscape, almost sure that could be the problem.

Edited by LaPeGa
Posted
12 minutes ago, LaPeGa said:

Oh, I didn't count the pixel, just take the value from the Transform Panel, so maybe AD2 is counting / displaying something wrong? 

AD does not include an object's stroke in its consideration of an object's dimensions. If your rounded rectangle has a centre-aligned stroke with width of 2 pixels, that will explain AD considering the icon to be only 38 x 39 pixels instead of 40 x 40 pixels while in vector form.

Posted

For an icon I would export document with the pixel or two of white framing the blue. That's why my AD file I supplied was exported 48x48. Also, it is an icon so if it looks good at 100%, it is good no need to pixel peep in IMHO.

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.