Picorims / wav2bar

Wav2Bar is a tool to make custom audio visualization and export production videos for the audio and music industry.
GNU General Public License v3.0
90 stars 9 forks source link

High DPI screens cause the app to scale, which includes intermediatory files for rendering #71

Open Magimedia opened 2 hours ago

Magimedia commented 2 hours ago

Describe the bug High DPI screens cause the app to scale, which includes intermediatory files for rendering

To Reproduce Open the App on any high resolution screen which has scaling set (eg a 1920x1080 15" screen typically has 125% scaling setby the OS). 1920x1080 output resolution produced jpegs at 2400x1350 at the rendering stage, and the scaling up then down to produce the mp4 introduces artifacts and distortion.

Expected behavior The app and rendered intermidiate files should not be scaled.

Desktop (please complete the following information):

Additional context

Adding the following two lines into main.js around line 50cwill fix the issue:

app.commandLine.appendSwitch('high-dpi-support', 1); app.commandLine.appendSwitch('force-device-scale-factor', 1);

Picorims commented 2 hours ago

Thanks for the report and the hint, this one is quite annoying indeed, I added it to the rewrite board to also fix it on legacy. I will most likely look into it once I'm done with the current ticket I am working on in the rewrite.