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

Export -> resized text looks ugly


Recommended Posts

Hi,

 

When I export and resize image in Affinity Photo, text looks not anti aliased - crispy compared to resize from Document -Resize and export with new size.

Let me demonstrate this problem.

Source height 512px:

startx512.png.121efbe3d40a7a4f1c0c5413dee0dab5.png

Export and exported image at 256px:

2116416409_Screenshot2020-04-13at14_24_02.png.26c51af548b97a2402edc0c6b3540de4.png

exportX256.png.a44057defe68082c7067edb0cfd0fef5.png

 

You see the problem?

Now I resize image with Document -> Resize document and export with new size.

79927591_Screenshot2020-04-13at14_30_39.png.5cd040233fcd48a4787c3111c36342e8.png

286615928_Screenshot2020-04-13at14_25_03.png.7f072bebf391e7aa7ee58200c28fa31f.png

 

documentresize256.png.240c7e83ea94cb29cc104eecc3601aba.png

 

It looks much better.

 

Why is that?

Link to comment
Share on other sites

57 minutes ago, madrian said:

You see the problem?

No, I do not. It could be that the images in this posting are all displayed at the same size, so any scaling effects are cancelled out. You have also exported with a transparent background, which means that on my Android Chrome browser, the background appears black when I click on an image, and the text is thus rendered invisible!

Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Link to comment
Share on other sites

4 hours ago, madrian said:

Hi,

 

When I export and resize image in Affinity Photo, text looks not anti aliased - crispy compared to resize from Document -Resize and export with new size.

Let me demonstrate this problem.

Source height 512px:

startx512.png.121efbe3d40a7a4f1c0c5413dee0dab5.png

Export and exported image at 256px:

2116416409_Screenshot2020-04-13at14_24_02.png.26c51af548b97a2402edc0c6b3540de4.png

exportX256.png.a44057defe68082c7067edb0cfd0fef5.png

 

You see the problem?

Now I resize image with Document -> Resize document and export with new size.

79927591_Screenshot2020-04-13at14_30_39.png.5cd040233fcd48a4787c3111c36342e8.png

286615928_Screenshot2020-04-13at14_25_03.png.7f072bebf391e7aa7ee58200c28fa31f.png

 

documentresize256.png.240c7e83ea94cb29cc104eecc3601aba.png

 

It looks much better.

 

Why is that?

 

There clearly is a distinct difference. I think you'll need to provide the Affinity document or another that has the same problem or you'll probably start seeing wild guesses being posted and wasting your time.

Link to comment
Share on other sites

The first time you export the file's size is...

744 x 256

The second time it is...

743 x 256

The 1px difference may be responsible for some sort of anti-aliasing issue. 

But we need the document to see exactly what could be the cause

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

44 minutes ago, anon2 said:

There clearly is a distinct difference

Not to me there isn't.As @anon2 and @carl123 say, you would do better by posting your original files for others to look at.

John

Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Link to comment
Share on other sites

  • Staff

Hi madrian :)

My apologies for the delayed response!

If you're using Document - Resize with text objects in your document then these objects will remain in vector until you export to PNG.

When resizing the document at export (using the export dialog with PNG selected) you are resampling a pixel document and this may cause the slight difference you're seeing.

Resizing the document will retain the vector objects until you export, whereas resizing at export will resample the image so we always recommend resizing the document before export, where possible!

Link to comment
Share on other sites

3 hours ago, Dan C said:

When resizing the document at export (using the export dialog with PNG selected) you are resampling a pixel document and this may cause the slight difference you're seeing.

Resizing the document will retain the vector objects until you export, whereas resizing at export will resample the image so we always recommend resizing the document before export, where possible!

No, resizing at export is no different to resizing the document and then exporting at the new size. In both cases, all vector objects are resized without being rasterised and then everything is flattened to a composite raster image that is exported to PNG (or other raster image format).

Link to comment
Share on other sites

I get same result when I resized in Photo with Document - Resize.

On the left, resized with Photo (Document - Resize and File - Export with new size.), on the right resized with Preview app (looks good).

777523392_Screenshot2020-04-17at20_46_43.thumb.png.07b4d7d28c9e83fe54614b3ec4b77257.png

Very weird.

 

Again, resized with Photo

icon@2x.png.f01554fc8d830bfa941c07309587dba0.png

 

Resized with Preview on Mac:

 

2097973165_icon@2x-PREVIEW.png.c61e314690032d43e87a98008abc48c9.png

 

Link to comment
Share on other sites

Looks like you used bilinear resampling in Affinity.

Preview app takes your image that has a gamma-encoded colour space, converts to a linear colour space, resizes with Lanczos (separable) resampling and then converts back to the gamma-encoded space.

The same procedure done in Affinity Photo will give an almost identical result.

However, just using Lanczos (separable) without the colour space conversions will give an even better result in the case of your stark black and white (and red) image because the ringing artefacts generated by Lanczos will be less obvious than if the resampling is done in a linear space. Some images do benefit from resampling in a temporary linear space, but not your icon.

So, in short, use Lanczos (separable) or bicubic resampling in Affinity to reduce the size of your raster icon. Do not use Lanczos (non-separable)!

(By the way, I see your 1000 x 1000 PNG was sourced from a JPEG. That''s not relevant to this particular resizing problem, but try to use sources without JPEG artefacts.)

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.