Skip to content

Commit

Permalink
use compression with pngs
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Dec 15, 2022
1 parent 2d2a073 commit 91ecd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sample.lua
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ function Sample:get_render()
if self.view[1]>self.view[2] then
self.view[1],self.view[2]=self.view[2],self.view[1]
end
local cmd=string.format("%s -q -i '%s' -o '%s' -s %2.4f -e %2.4f -w %2.0f -h %2.0f --background-color 000000 --waveform-color 757575 --no-axis-labels --compression 0 &",audiowaveform,self.path_to_dat,rendered,self.view[1],self.view[2],self.width,self.height)
local cmd=string.format("%s -q -i '%s' -o '%s' -s %2.4f -e %2.4f -w %2.0f -h %2.0f --background-color 000000 --waveform-color 757575 --no-axis-labels --compression 9 &",audiowaveform,self.path_to_dat,rendered,self.view[1],self.view[2],self.width,self.height)
print(cmd)
os.execute(cmd)
end
Expand Down

0 comments on commit 91ecd58

Please sign in to comment.