mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-29 16:09:10 +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))
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user