Tuesday, February 17, 2009

How to convert WBZ files to JPG (free!)

Webshots has beautiful pics, but their format is a horrid one, titled 'WBZ'. The interesting part is that it actually contains an encrypted JPEG file inside, along with some extra info.

To extract the JPEG file from the WBZ, you can use the following python script. It takes multiple arguments and saves the JPEG files according to their webshots name. Good news is, it doesn't even require any extra package - python core does it.

It is not my code - it was part of a GUI software. I merely ripped the GUI and other useless parts of that code. I don't remember what it was - sorry.

Anyway, here it is. Enjoy!

http://pastebin.com/f77e4e93c


 

2 comments:

Ed said...

Neither an install of python 2 or 3 will run from the command line.

vazhavandan said...

Thanks it works