A tool used to change the image height/width property of an image. Currently only png/jpg files are supported.
./modsize.py --help
usage: modsize.py [-h] [--width WIDTH] [--height HEIGHT] file output
positional arguments:
file Filepath to image
output Filepath to image
optional arguments:
-h, --help show this help message and exit
--width WIDTH, -sw WIDTH
New width of image
--height HEIGHT, -sh HEIGHT
New height of image
- pip install -r requirements.txt
- pngcsum
Image file from X-MAS CTF 2018
Challenge image
$ eog examples/xmasoriginal.png
$ ./modsize.py --height 6000 "examples/celeb.png" out.png
$ eog out.png
- Modifying the width of an .png file will make the image file unable to be opened: "bad adaptive filter value". Not sure if this is something I can fix