As said in the title.
I was using the method on a test project to look at the jpg compression and compare file size.
I was not having any difference with asynchronous=True
.
Here was the code used in a ChopExecuteDAT :
def onOffToOn(channel, sampleIndex, val, prev):
op('out1').save('Export/picture-0.1.jpg', asynchronous=True, createFolders=True, quality=0.1);
op('out1').save('Export/picture-0.3.jpg', asynchronous=True, createFolders=True, quality=0.3);
op('out1').save('Export/picture-0.6.jpg', asynchronous=True, createFolders=True, quality=0.6);
op('out1').save('Export/picture-0.9.jpg', asynchronous=True, createFolders=True, quality=0.9);
op('out1').save('Export/picture-1.0.jpg', asynchronous=True, createFolders=True, quality=1.0);
return
This works :
def onOffToOn(channel, sampleIndex, val, prev):
op('out1').save('Export/picture-0.1.jpg', asynchronous=False, createFolders=True, quality=0.1);
op('out1').save('Export/picture-0.3.jpg', asynchronous=False, createFolders=True, quality=0.3);
op('out1').save('Export/picture-0.6.jpg', asynchronous=False, createFolders=True, quality=0.6);
op('out1').save('Export/picture-0.9.jpg', asynchronous=False, createFolders=True, quality=0.9);
op('out1').save('Export/picture-1.0.jpg', asynchronous=False, createFolders=True, quality=1.0);
return