def scale(self, image, geometry, options):
upscale = options['<STR_LIT>']<EOL>x_image, y_image = map(float, self.get_image_size(image))<EOL>factor = self._calculate_scaling_factor(x_image, y_image, geometry, options)<EOL>if factor < <NUM_LIT:1> or upscale:<EOL><INDENT>width = toint(x_image * factor)<EOL>height = toint(y_image * factor)<EOL>image = self._scale(image, width, height)<EOL><DEDENT>return image<EOL>
Wrapper for ``_scale``