FIXED: Save method using quality parameter working only if "asynchronous=False"

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
1 Like

Hi @hello_im_flo,

thanks for reporting. This is confirmed and we are looking into it.

cheers
Markus

1 Like

This will be fixed in builds 2022.33930 and later. Thanks for the report.