Best image file format for designing custom GUI & animations ?
-
amiga500
- KVRer
- Topic Starter
- 6 posts since 23 Mar, 2023
Hello & greetings ! What is the "JUCE recommended" image format for creating custom GUI graphics such as sliders, knobs, and buttons that can be moved or rotated? Specifically, we are looking for advice on which file format is optimal among JPG, PNG, SVG, or X. We haven't been able to find any official guidance from JUCE on this topic.
Moreover, should these images be prepared as a filmstrip or as separate images for each position of the component? How should we communicate to our graphic designer friend about the required format and specifications for creating these graphics?"
Thanks
Moreover, should these images be prepared as a filmstrip or as separate images for each position of the component? How should we communicate to our graphic designer friend about the required format and specifications for creating these graphics?"
Thanks
-
yetkin
- KVRer
- 10 posts since 21 Mar, 2023
Hi there! I was also searching for an answer to the same question. I am currently trying to determine which format is more commonly used and which one is better overall.
-
T-CM11
- KVRAF
- 2850 posts since 31 Jan, 2003 from Ghent, Belgium
I'm no programmer (desktop publisher), but you should read up on the difference between pixels and vectors.
-
Cyforce
- KVRAF
- 2205 posts since 2 Feb, 2009 from Germany
Most developers use PNG for their UI/Skin files, probably for a reason. Even if e.g. JPG looks smaller in filesize than PNG sometimes - most of the time (I think in NI Kontakt UI it`s the case) the graphics (only PNG can be used) will be transformed into binary format anyway to process the UI interface. So maybe PNG is there more efficient or it`s because PNG is open-source while JPG is not (so far as I know).
It also depends on the subject, like Knob/Slider strips with transparency - PNG is the better choice.
It also depends on the subject, like Knob/Slider strips with transparency - PNG is the better choice.
-
otristan
- KVRAF
- 2363 posts since 28 Mar, 2005
-
matt42
- KVRian
- 1270 posts since 9 Jan, 2006
JUCE supports the PNG (which as mentioned is lossless and handles transparency) format, but the built in controls use vector graphics. You'd need to inherit from a control class and implement the loading and displaying of the images yourself. Typically you'd use a filmstrip, but the formatting details you give to your designer would depend on your implementation of course.
-
amiga500
- KVRer
- Topic Starter
- 6 posts since 23 Mar, 2023
Thank Youmatt42 wrote: ↑Fri Mar 24, 2023 1:51 pm JUCE supports the PNG (which as mentioned is lossless and handles transparency) format, but the built in controls use vector graphics. You'd need to inherit from a control class and implement the loading and displaying of the images yourself. Typically you'd use a filmstrip, but the formatting details you give to your designer would depend on your implementation of course.