def exif_rotate_image(album, filename): image = Image(album, filename, current_app.config) image_modifier = ImageModifier(image) image_modifier.rotate_exif() return jsonify(result="OK")
def exif_rotate_image(album, filename): image = Image(album, filename, current_app.config) image_modifier = ImageModifier(image) image_modifier.rotate_exif() return jsonify(result='OK')
def image_rotate(album, filename, steps=1): image = Image(album, filename, current_app.config) image_modifier = ImageModifier(image) image_modifier.rotate(steps) return jsonify(result="OK")
def image_rotate(album, filename, steps=1): image = Image(album, filename, current_app.config) image_modifier = ImageModifier(image) image_modifier.rotate(steps) return jsonify(result='OK')