saveOptions = []
saveOptions.append('QUALITY=75')
jpegDriver = gdal.GetDriverByName('JPEG')
jpegDriver.CreateCopy('imageFile.jpg', dataset, 0, saveOptions)
Convert GeoTIFF to JPEG and Extract GeoTIFF Headers in Python