https://github.com/lostjared/image_convert
Batch convert and resize image files.
https://github.com/lostjared/image_convert
Last synced: 6 months ago
JSON representation
Batch convert and resize image files.
- Host: GitHub
- URL: https://github.com/lostjared/image_convert
- Owner: lostjared
- Created: 2023-02-07T23:45:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-08T22:18:07.000Z (over 3 years ago)
- Last Synced: 2024-12-31T05:18:35.546Z (over 1 year ago)
- Language: C++
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Wrote this to help out with conversions of multiple files to make it easier on me
To compile, first install OpenCV 4 development libraries
Output file list with
$ ls | grep file_type > list.txt
or
$ ls | grep png > list.txt
then use program to batch convert and resize
$ img_convert --input=list.txt --output=jpg --res=1280x720
will stretch the resolution so be aware of that
or don't change the res
$ img_convert --input=list.txt --output=png
or output to certain path
$ img_convert --input=list.txt --output=jpg --path=/Users/jared