Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def save(self, path, scale=1):
"""
Save the image to file.
Parameters
----------
path : str
Output path.
scale : int
Upscaling using nearest neighbor, e.g. a scale of 5 will make each
pixel a 5x5 rectangle in the output.
"""
data = self.scaled_image(scale)
dd.image.save(path, data)
def save(self, path, scale=1):
"""
Save the image to file.
Parameters
----------
path : str
Output path.
scale : int
Upscaling using nearest neighbor, e.g. a scale of 5 will make each
pixel a 5x5 rectangle in the output.
"""
data = self.scaled_image(scale)
dd.image.save(path, data)