From 881183ed0a8d0b01d66cf98ee6cb45a88ca7a0e4 Mon Sep 17 00:00:00 2001 From: K4YT3X Date: Sun, 13 Sep 2020 14:33:12 -0400 Subject: [PATCH] removed image resizing function which is no longer needed --- src/wrappers/ffmpeg.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/wrappers/ffmpeg.py b/src/wrappers/ffmpeg.py index f37f4cb..a8f74b7 100755 --- a/src/wrappers/ffmpeg.py +++ b/src/wrappers/ffmpeg.py @@ -259,26 +259,6 @@ class Ffmpeg: return(self._execute(execute)) - def resize_image(self, input_path: pathlib.Path, output_path: pathlib.Path, output_width: int, output_height: int): - """ resize the given image and output the resized image to output_path - - Args: - input_path (pathlib.Path): input image path - output_path (pathlib.Path): output image path - output_width (int): output image target width - output_height (int): output image target height - """ - execute = [ - self.ffmpeg_binary, - '-i', - input_path, - '-vf', - f'scale={output_width}:{output_height}', - output_path - ] - - return(self._execute(execute)) - def _read_configuration(self, phase, section=None): """ read configuration from JSON