Skip to content

Decode multiple bpg images at the same time with a python script

License

Notifications You must be signed in to change notification settings

Ace-Radom/bpgbatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bpgbatch

Decode multiple bpg images at the same time with a python script

You need to self-download bpg decoder from here and put the script under the same folder as bpgdec.exe.

Then run the script like:

python bpgbatch.py {folder}

The script will get all bpg files (end up with .bpg) under the target folder and call bpgdec.exe to decode them. Outputs will be dumped under output/.

If the filename of the bpg file contains unicode-characters that cannot be recognized by bpgdec.exe (it does happen), the script will automatically create a copy of the file with a filename that all characters, which cannot be encoded under your system encoding format, will be erased, and hand the copy to bpgdec.exe and retry.

About

Decode multiple bpg images at the same time with a python script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages