Jump to content

Recommended Posts

Posted
10 hours ago, MEB said:

Hi djburt,

You have to thank @MattP (from dev team) for spotting the dpi difference, not me.

Anyway, i'm glad to know this is working as intended.

 

Thanks MattP!

  • 1 year later...
  • 3 weeks later...
Posted

The fact that I couldn't properly export a simple, cropped JPEG was driving me mad, so I spent the good part of today exporting and comparing all possible sorts of combinations of PNGs and JPEGs in order to avoid having to buy another app. This is what I found:

If you a) change the canvas size, and b) resize the image (thus resampling the image – resampling is a requirement when resizing) before exporting it, thus resampling the image twice (since resampling is also required during export), the result will be blurry. In simpler terms: canvas resize + image resize = blurry export.

If you a) change the canvas size, and b) leave the image unresized and unsampled until you export it (in which step resampling is required), the result will be sharp. In my example, when I chose Nearest Neighbour or Lanczos 3 (non-separable) during export it even became too sharp. If you need to resize the image, you can still do it in the export dialog. This has the added benefit of keeping the original image in its original size.

  • The result will be the same whether the original image is a JPEG or a PNG.
  • The result will be the same whether you change the DPI of the image or not.
  • The result will be the same whether the canvas size is changed before or after the resampling is done.
  • The result will be the same whether the exported image is of the same format as the original or not.

With my image, I found that these resampling combinations also kept the image sharp, but all other combinations made it either blurry or too sharp:

  • Bicubic before export + Nearest Neighbour during export
  • Bilinear before export + Nearest Neighbour during export
  • Lanczos 3 (separable) before export + Nearest Neighbour during export

Compare attached images:

original.jpg

  • Untouched, 300 DPI JPEG.

blurry.jpg

  1. Canvas enlarged 15 px on each side.
  2. Image resized to 72 DPI, which made the height adjust automatically from 4423 px to 1061.5 px.
  3. Height manually adjusted to 300 px before image resampled using the Bilinear (default) method.
  4. Image exported without size change using the Bilinear (default) resampling method.

The method above is the method that a lot of people seem used to from Photoshop. It has always produced sharp results in Photoshop for me.

sharp-with-compensated-size.jpg

  1. Canvas enlarged 15 px on each side.
  2. Image resized to 72 DPI, which made the height adjust automatically from 4423 px to 1061.5 px.
  3. Height manually adjusted back to 4423 px before image resampled using the Bilinear (default) method.
  4. Image resized from 4423 px to 300 px height in the Export dialog, then exported with Bilinear (default) resampling method.

sharp-without-compensated-size.jpg

  1. Canvas enlarged 15px on each side.
  2. Image resized to 72 DPI, which made the height adjust automatically from 4423 px to 1061.5 px.
  3. Image resampled without further height adjustment using the Bilinear (default) method.
  4. Image resized from 1061.5 px to 300 px height in the Export dialog, then exported with Bilinear (default) resampling method.

In the two small sharp images, the woman by the piano looks exactly the same even when zoomed in closely, but the text is a tiny bit smoother in the one without compensated size. I think which of these two alternatives is the best is a matter of preference from case to case.

blurry.jpg

original.jpg

sharp-with-compensated-size.jpg

sharp-without-compensated-size.jpg

Posted
13 hours ago, johanna said:

I spent the good part of today exporting and comparing all possible sorts of combinations

So you say resample at export work but resample with image size command does not (unless combined with export resample)? Remarkable!
(Now devs should correct this problem, but meanwhile) if others will confirm this behaviour we should resample only at export.

Posted

I have difficulty understanding your results, mainly because the various images are at different sizes which makes comparison awkward. Three out of four are really too small for proper examination.

Because what you are trying to do seems an interesting project, I will try to follow your procedures and see what I come up with.

I was intreagued that your forensic medicine laboratory was examining a grand piano.

John

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

Posted

I have just run your procedures on an image that has been lurking on my PC for many years. After the various resizings, I ended up with three 300px images. Far too small to make any useful comparisons.

This is the original image: colonOriginal.thumb.png.3e109cc53143698b38e8a4634e606266.png

This has followed the Blurry procedure: colonBlurry.png.e1ac84ee02b1d2e80ec82a95e8b3cf4a.png

This is the Sharpen with Compensation: colonSharpWithC.png.564716f3d0a0bf439978668bbe7c1c2d.png

This is the Sharpen without Compensation: colonSharpWithoutC.png.91d418a20931f4d3a722b513cb0125cb.png

Just for good measure, I took my original and resized to 300px (ignoring the dpi) and using Lanczos Separable: colonLanczos.png.4006ef6f17d95d0531fe13bc32795f86.png

I may run my own trials to create final images of a size that can be compared.

John

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

Posted

@johanna, I have just seen your post on embedding fonts from a pdf. This would eplain why your output files are so small.

John

Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo).

CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB  DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050

Posted
3 hours ago, John Rostron said:

I was intreagued that your forensic medicine laboratory was examining a grand piano.

They must have decided that it offered the potential for some key evidence! :P

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Posted

 

3 hours ago, Fixx said:

So you say resample at export work but resample with image size command does not (unless combined with export resample)? Remarkable!
(Now devs should correct this problem, but meanwhile) if others will confirm this behaviour we should resample only at export.

I think both resample methods work, but resampling twice gives a blurry export when combined with altering the canvas size. And because both resizing the image before export and exporting require resampling, resizing the canvas + resizing the image + exporting = blurry image.

My test image is supposed to be a thumbnail on a website. It's not supposed to be readable, but it's supposed to not look awkward. I can at least myself clearly see the difference between the blurry one and any of the sharp ones, small as they are, and so can my client, who's now happy with the sharper image. All is well and I can continue to use Affinity Photo for exports of this kind.

By the way, the ad is for a medical research fund. A person gave their grand piano to the fund so that the fund could sell it and use the income to sponsor a lot of awesome medical work. The placement of the piano in the lab is of course just meant to grab the reader's attention. :)

  • 5 months later...
Posted

Hey... I know this is a fairly old post. But I think I just solved at least my version of this issue.

I was simply trying to create a Facebook banner (820px x 312px). Simple high res background, my transparent vector logo, and a few lines of simple text. Every time I would go to export, no matter what format I tried, no matter what I changed regarding the DPI, etc., my text and logo was always pixelated and super unprofessional.

After reading on here that it may have had something to do with me using my 2015 MacBook Pro 15" Retina, I started looking for any and all Retina-themed options/toggles. I found one that did the trick.

In Export Persona, Slices, Export Preset, choose "Retina PNG-24" (instead of "Single PNG-24").

This resulted in two options for exported files, I chose the "x2" option, and now my image looks beautifully crisp and perfect. I did not have to rasterize anything or convert anything in the design itself.

I believe this is a similar fix to one I saw earlier in this thread, advising to bump things up to a 200% view, but I didn't want to redesign anything, and now this is working perfectly. Not sure if you can tell a difference in these graphics (depending on what kind of screen you're viewing on), but I SURE can; and I am very happy to have found an easy solution to this.

Hope this helps anyone who may be struggling with the same issue I had.

Cheers!

background.png

background@2x.png

  • 2 years later...
  • 2 years later...
Posted
On 8/16/2017 at 4:16 PM, MEB said:

Hi djburt,

They are being resampled because the image on right (senior teacher badge) is at 477 dpi while the document is set to 72 dpi. If you right-click on this layer and select Rasterise it will be rasterised to document's dpi (72) and the document will not be resampled on export.

Y'all really just don't want to fix this issue, do y'all? 

  • 9 months later...
Posted

I am having this issue as well. I created an image from 1248px by 792px. 72 dpi. When exporting different layers as webp or jpg, they both produce the same blurry images. Even gif does so.
Is there still no solution?!
Please don’t tell me I need to make a screenshot of the layered file in Affinity on my laptop with razor sharp display and crop it in Preview?! 🤔

(Attached screenshots should be sharp :) ) (Not sure why they expand to 100% with in this forum)

Screenshot 2025-01-30 at 00.15.40.png

Screenshot 2025-01-30 at 00.15.29.png

Posted
3 minutes ago, EvaWebdev said:

I am having this issue as well. I created an image from 1248px by 792px. 72 dpi. When exporting different layers as webp or jpg, they both produce the same blurry images. Even gif does so.

Are you using Affinity Designer or Affinity Photo? Do the documents have any vector object layers or is every layer a pixel one? Is everything pixel aligned (whole pixel values for X, Y, W, & H values in the Transform panel)?

Keep in mind that all bitmap (pixel) file formats like JPEG or GIF will apply antialiasing to any objects that do not fit exactly into full pixels, which will look like burring on edges.

All 3 1.10.8, & all 3 V2.6 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

Posted
On 3/23/2019 at 1:52 AM, thewesleyfox said:

After reading on here that it may have had something to do with me using my 2015 MacBook Pro 15" Retina, I started looking for any and all Retina-themed options/toggles. I found one that did the trick.

In Export Persona, Slices, Export Preset, choose "Retina PNG-24" (instead of "Single PNG-24").

This resulted in two options for exported files, I chose the "x2" option, and now my image looks beautifully crisp and perfect. I did not have to rasterize anything or convert anything in the design itself.

I tried to follow your instruction.
Something weird happened. I choose the Retina PNG-24.
Then I exported the img to .png and .webp. Look what happened. Left the webp. Right the png, the letters have been eaten.

Screenshot 2025-01-30 at 00.38.56.png

Screenshot 2025-01-30 at 00.38.47.png

Posted
7 minutes ago, R C-R said:

Are you using Affinity Designer or Affinity Photo?
Do the documents have any vector object layers or is every layer a pixel one?
Is everything pixel aligned (whole pixel values for X, Y, W, & H values in the Transform panel)?

Keep in mind that all bitmap (pixel) file formats like JPEG or GIF will apply antialiasing to any objects that do not fit exactly into full pixels, which will look like burring on edges.

Thanks for your reaction R C-R.
I use Affinity Photo. (I am a former Photoshop CS6 user.)
The layered Affinity Photo file contains pasted screenshots. Some of them rasterized.
The screenshots are scaled and moved with the cursor, by whole pixels.
This was never a problem in Photoshop.

Posted
9 minutes ago, EvaWebdev said:

The layered Affinity Photo file contains pasted screenshots. Some of them rasterized.
The screenshots are scaled and moved with the cursor, by whole pixels.

Are not all of them rasterized (bitmap) pixel layers? What else could they be?

How specifically have they been scaled?

Can you at least show us a screenshot of the Layers panel, ideally showing all the layers?

All 3 1.10.8, & all 3 V2.6 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

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.