% Change the 'quality' variable down below and observe the very same file size for different 'quality' values import os import scribus img = scribus.ImageExport() img.type = 'jpg' img.dpi = 72 img.scale = 100 quality = 98 img.quality = quality img.name = "/home/user/export_" + str(quality) + ".jpg" img.save()