mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-01 10:29:09 +00:00
removed image resizing function which is no longer needed
This commit is contained in:
parent
9389511d2d
commit
881183ed0a
@ -259,26 +259,6 @@ class Ffmpeg:
|
|||||||
|
|
||||||
return(self._execute(execute))
|
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):
|
def _read_configuration(self, phase, section=None):
|
||||||
""" read configuration from JSON
|
""" read configuration from JSON
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user