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

Trouble getting a clean sharp logo from a vector exporting to png.


Recommended Posts

Hi all,

I need some advice. I've been working on a website redesign for a client, they recently launched the site but I noticed the website logo wasn't as clean and sharp as the same logo used the same size on a video thumbnail on the same page. I have tried every way I can think of exporting this logo so it looks as good but can't get it to be the same. 

The spec has to be a transparent png as it sits on an image background. roughly 202 px wide, can be a few pixels more if needed.

The artwork is vector based and being output from Affinity Publisher. I've attached a screenshot of the page in question. The logo that is slightly blurry is top left (T Telum Media). The good version is bottom right. 

Thoughts?

Screenshot 2023-07-20 at 15.02.14.png

Edited by DominicJ
Add tags
Link to comment
Share on other sites

1 hour ago, DominicJ said:

The logo that is slightly blurry is top left (T Telum Media). The good version is bottom right. 

Apart from speculation about different resampling methods on file export or possible recompression:

The two images have different display sizes: While the logo is placed in 100 % (202 px) the video background seems to be displayed in ~ 44% (800 px -> 350 px). Compare this current example:

telum1.jpg.d3f7f7a2a9cde58d32a776fbe90b2259.jpg 

telum3.jpg.c8a65b760253314338958bb58e7063aa.jpg--telum2.jpg.a9b1b56a6bf581aec4b20366e72bce41.jpg

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

Looks Ok on the website so far ...

logo-inside2.jpg.d218d579909b76af48d8ae76b25909dd.jpg

logo-inside.jpg.16d95099598c3beac7638a0c8f15d178.jpg

Though the SVG logo could be directly included right sized into the HTML code for website as an SVG <img> file here if wanted ...

Quote

<img src="telummedia-logo.svg">

... or as an background-image via CSS ...

Quote
site-logo {
  height: 202px;
  width: 34px;
  background: url(telummedia-logo.svg) 50% 50% no-repeat;
}

... etc.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

1 hour ago, thomaso said:

Apart from speculation about different resampling methods on file export or possible recompression:

The two images have different display sizes: While the logo is placed in 100 % (202 px) the video background seems to be displayed in ~ 44% (800 px -> 350 px). Compare this current example:

telum1.jpg.d3f7f7a2a9cde58d32a776fbe90b2259.jpg 

telum3.jpg.c8a65b760253314338958bb58e7063aa.jpg--telum2.jpg.a9b1b56a6bf581aec4b20366e72bce41.jpg

Yes, I know this, I'm asking how do you make a PNG look as good. Surely if both are using the same vector artwork and the same pixels on screen I should be able to get a png to look the same. Doesn't make sense that by scaling a logo down it looks sharper when its just using the same actual pixels to show on screen. Thanks for your thoughts on this.

Link to comment
Share on other sites

8 minutes ago, v_kyr said:

Looks Ok on the website so far ...

logo-inside2.jpg.d218d579909b76af48d8ae76b25909dd.jpg

logo-inside.jpg.16d95099598c3beac7638a0c8f15d178.jpg

Though the SVG logo could be directly included right sized into the HTML code for website as an SVG <img> file here if wanted ...

... or as an background-image via CSS ...

... etc.

Interesting, I didn't know an .svg could be used, does it limit who can view it? Still looking for how to make a png look sharp. Thanks.

Link to comment
Share on other sites

4 minutes ago, Red Sands said:

@DominicJ

Our website has 5.5 - 6 million monthly unique visitors, we've had that for many years, and it's been quite a few years since we switched to using SVG for our logo, navigation icons and illustrations. Our visitors represent all age groups and they visit us with all types of devices. I haven't heard of a single instance of feedback about problems with SVG, and if (and when) there are problems on our website, we're not spared feedback (and thank goodness for that), so don't think you're breaking new ground with SVG and taking risks. Give it a try. 🙂

That's really interesting to know. Just checked out Apple, Facebook, YouTube are all using .svg for their graphics. Wow, I need a refresher on html coding!!

 

Link to comment
Share on other sites

30 minutes ago, DominicJ said:

does it limit who can view it?

With nowadays webbrowsers, NOPE!

31 minutes ago, DominicJ said:

Still looking for how to make a png look sharp.

If you created the logo as plain vectors, you then should be able to export that in any needed PNG size from the org vector drawing without any need for additional sharpening or the like. - Though if you instead deal only with a PNG bitmap file, rescaling/resizing that to other than it's orig generated from dimensions will usually decrease it's overall sharpness slightly here. Thus when resizing bitmaps some amount/degree of resharpening is commonly needed.

So in order to prevent unnecessary resizing & resharpening of PNG bitmaps etc., instead always use directly the SVG format for logos/drawings on websites, or at least an 1:1 sized generated PNG from a certain vector drawing representation.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

14 hours ago, DominicJ said:

Doesn't make sense that by scaling a logo down it looks sharper when its just using the same actual pixels to show on screen.

If an image is displayed in reduced size then not all pixels of the image are displayed although they exist in the file. If it gets displayed for instance in 50% then 25% of the available pixel get visible (50% horizontally and 50% vertically). Thus a blurry contour of black text may occur sharper than it is if the few gray pixels at its edges aren't displayed. Of course, yes, the monitor's hardware resolution (pixel size/density) influences the result, too.

That is why sharpening should get applied in a zoom level not below 100%. Thus, to compare sharpness of two images I prefer to view both in same size, not one at 100 % and the other at 50%.

The attached (cropped) image might illustrate the effect of shown/hidden pixels at different view sizes (display sizes / zoom levels). [Actually this is a monitor test image, in true 100% view the colours would not show and the cube appear gray, also it may show moiré at different sizes. The effects appear not to be fully visible in the forum's browser window, here is it in full size: monitor gamma test.png.zip]

gammatest.png.d31218777ad8813227683af9d4d5e1e3.png - gammatest.png.d31218777ad8813227683af9d4d5e1e3.png - gammatest.png.d31218777ad8813227683af9d4d5e1e3.png

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Link to comment
Share on other sites

1 hour ago, thomaso said:

If an image is displayed in reduced size then not all pixels of the image are displayed although they exist in the file. If it gets displayed for instance in 50% then 25% of the available pixel get visible (50% horizontally and 50% vertically). Thus a blurry contour of black text may occur sharper than it is if the few gray pixels at its edges aren't displayed. Of course, yes, the monitor's hardware resolution (pixel size/density) influences the result, too.

That is why sharpening should get applied in a zoom level not below 100%. Thus, to compare sharpness of two images I prefer to view both in same size, not one at 100 % and the other at 50%.

The attached (cropped) image might illustrate the effect of shown/hidden pixels at different view sizes (display sizes / zoom levels). [Actually this is a monitor test image, in true 100% view the colours would not show and the cube appear gray, also it may show moiré at different sizes. The effects appear not to be fully visible in the forum's browser window, here is it in full size: monitor gamma test.png.zip]

gammatest.png.d31218777ad8813227683af9d4d5e1e3.png - gammatest.png.d31218777ad8813227683af9d4d5e1e3.png - gammatest.png.d31218777ad8813227683af9d4d5e1e3.png

Understood, maybe I shouldn't say sharpness but clarity. If you look at the screenshot I posted, both the website logo and the logo on the video thumbnail come from the same master vector file. One is lovely on the video. The other, the png website logo, is 'soft', 'blurry' and lacks the same clarity. We've done some tests with a logo at 600px and scaled it in HTML to 205px, and it looks fab. Surely there is a way to get such nice 'clarity' by outputting directly to the correct size? Your example is great but look at the video thumbnail. It is also scaled within the original video of 800px and displayed at around 200px with the 350px video placeholder.

 

My feeling is, Affinity Publisher/Designer isn't creating optimum PNGs, and there are only a few setting options to change to improve it.

Link to comment
Share on other sites

16 hours ago, Red Sands said:

Be aware that some programs output better SVG for web use than others. None mentioned, none forgotten.

I'm not a developer, so I'll leave that to others to advise. SVG graphics from Affinity have worked for some personal stuff, but our professional SVG comes from professional sources and goes through the full development cycle along with all other code (inspection, internal dev review, sprint review, customer acceptance test and full release test!). I'm not used to just throwing things on the web.

We have, however, thrown in some SVG from Illustrator directly into less important pages from time to time. Inkscape is also quite popular for web graphics because Inkscape is developed as an SVG editor following the SVG specifications.

We are pushing out a scaled down 600px version this weekend from the dev server, but after a week or so we will go the svg route. Really helpful advice, thank you.

Link to comment
Share on other sites

11 minutes ago, DominicJ said:

My feeling is, Affinity Publisher/Designer isn't creating optimum PNGs, and there are only a few setting options to change to improve it.

Agree. That's why I mentioned before my hint about viewing size: "Apart from speculation about different resampling methods on file export or possible recompression:" (i.e. the two Lanczos resampling methods on PNG export do some sharpening)

13 minutes ago, DominicJ said:

look at the video thumbnail. It is also scaled within the original video of 800px

Not sure if I understand right, it sounds you compare a PNG with a different file format (video).

Never mind, it is good that you can/will solve it with an SVG instead of a pixel image!

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

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.