Issue with Importing Transparent PNG Logos in HISE on Windows
-
Hi everyone,
I'm having an issue with importing PNG logos with transparent backgrounds into HISE. The original images are the size of an A4 sheet, and I then scale them down in HISE.
On macOS, everything looks perfect—smooth edges with no artifacts. However, on Windows, the same PNG file appears blurry and jagged in HISE.
Has anyone else experienced this issue? Are there any settings or workarounds to improve how transparent PNGs are rendered on Windows?
Thanks in advance!
-
Can you get the logo as an svg? Scaling a massive image like that doesn't sound like a good idea and it will use a lot of RAM. If you do need to use a raster image you should reduce its size outside of HISE.
-
@d-healey i’m actually already working with SVG and vector graphics. I export them as PNG with a transparent background. On macOS, everything looks perfect, regardless of whether the file was initially large or already at the correct size. However, on Windows, I always get poor image quality with the same files.
-
@voxuer1 This'll most likely be some Windows rendering issue with JUCE. Probably not something Christoph is going to address himself, and it might not be addressable by the JUCE team either.
All said and done, you're almost certainly going to be much better off rendering out the exactly resolution you need, both in terms of memory efficiency, and also future proofing.
If you need to support different resolutions, and you can't just turn your SVG's into SVG paths using the Projucer SVG Path converter, then you should export your PNG at different scales and choose the right file to insert at runtime based on a global scale factor.