mirror of
				https://github.com/k4yt3x/video2x.git
				synced 2025-10-31 21:00:58 +01: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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user