This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
''' | |
Based on a script by BigglesZX: https://gist.github.com/BigglesZX/4016539 | |
BigglesZX was adapted as follows: | |
- Updated to be compatible with Python 3. | |
- The original function 'processImage' was renamed 'extract_and_resize_frames' and was adapted as follows: | |
- It resizes each frames as it extracts them | |
- It saves all the frames to an array |