bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.89k stars 241 forks source link

Add jpg output format #163

Closed Don1948 closed 1 year ago

Don1948 commented 2 years ago

Can you add industry standard jpg format in addition to png?

chrisn commented 1 year ago

I just did some tests, and the output jpeg files are about 10 times the size of PNGs, and with visible compression artefacts. So I'm not sure I want to add jpeg support directly. You can always use something like imagemagick to convert the PNG.

Here's a jpeg example (quality: 90):

test_file_stereo

Here's the same image as PNG:

test_file_stereo