Skip to content

Resize Frames

Jerry Hogsett edited this page Jun 29, 2023 · 3 revisions

Screenshot 2023-06-15 205706

Uses

  • Increase or decrease the size of video frames
  • Fix issues with Aspect Ratio
  • Reduce image blur prior to using Upscale Frames to enlarge using Real-ESRGAN
  • Crop out VHS tape noise in a digitized video

How It Works

  1. Set Input Path to a directory on this server to the PNG files to be resized
  2. Set Output Path to a directory on this server for the resized PNG files
  3. Set Scaling Type to one of the available types:
    • area cv2.INTER_AREA (best quality reducing)
    • cubic cv2.INTER_CUBIC (better quality than linear)
    • lanczos cv2.INTER_LANCZOS4 (best quality enlarging)
    • linear cv2.INTER_LINEAR (fast, good at enlarging)
    • nearest cv2.INTER_NEAREST (fastest, lower quality)
    • none - disable resizing
  4. Set Scale Width and Scale Height to the resizing dimensions for the frames
  5. Set Cropping Type to one of the available types:
    • crop - enable cropping
    • none - disable cropping
  6. Set Crop Width and Crop Height to the cropping dimensions for the frames
    • Keep the default values of -1 to match the resizing values
  7. Set Crop X Offset and Crop Y Offset to the cropping origin for the frames
    • Keep the default values of -1 to automatically center the cropped portion
  8. Click Resize Frames
  9. When complete, the output path will contain a new set of frames

Important

  • If cropping only, the original image dimensions must be entered into the Scale Width and Scale Height fields
  • Cropping is performed after resizing
Clone this wiki locally