Zerk Zone

Pages for the Creations of Ryan Armstrong

Image Gallery Script

Posted on October 11th, 2014 @ 9:45 am by Zerker

This is a script I wrote to generate an image gallery HTML file for a given folder, or for the Steam Screenshots folder. It will, by default, show the full resolution original image, so it can be useful for browsing a folder of moderate-sized images without having to rely on thumbnails. It can also generate thumbnails of any size if desired. Thumbnails are created into .thumb folders, which will be hidden in Unix-type OSes, but not (unfortunately) in Windows. Finally, the script can double-size and apply aspect ratio correction for smaller images (e.g. NES, SNES or DOS screenshots). These are sized using CSS attributes and do not generate a second copy of the image. Here’s an example gallery of X-Com screenshots with double-sizing and aspect ratio correction.

This can be run without any parameters to create the basic gallery in the current directory. For Windows users, you can also add a shortcut to the script in your SendTo folder to easily create a gallery for any folder by right clicking on it and using the SendTo menu.

Comments (0)

Filed under: Programs/Libraries,Python |

Steam Image Scripts

Posted on October 11th, 2014 @ 9:32 am by Zerker

After finding most instructions for downloading Steam grid view images to be out-of-date, and same goes for the only grid view downloader I could find, I wrote my own.

I also put together a quick library that can create a dictionary of Steam applications on a given profile based on the JavaScript of the profile page (using JSON).

Comments (0)

Filed under: Programs/Libraries,Python |

Convert Midi script

Posted on October 4th, 2014 @ 8:41 am by Zerker

This is script I recently cooked up after picking up MT32 and Roland SoundCanvas sound modules to play midi files and record the playback with said hardware synth. I then encoded the recordings and loaded them on my media player.

If you have a hardware synth (or quality software synth should such a thing exist) you should be able to use this.

usage: convertmidi.py [-h] [-d MIDIDEVICE] convertpath

Converts all mid files in a path to WAV. Uses the tools playsmf to play the midi files and sox to record the resulting audio. Both tools must be present on the system path. You should have your OS configured to record from whichever device the midi output will be sent to ahead of time.

positional arguments:
  convertpath    Path to process

optional arguments:
  -h, --help     show this help message and exit
  -d MIDIDEVICE  Midi Device identifier (default of 1 for first external

This script also requires Python 3.x. I’ve only tested this in Windows due to better support for my sound card, but there’s nothing particularly Windows-specific about the script. It should run fine in Linux with appropriate versions of playsmf and sox.

It also comes with a reset.mid file I downloaded from somewhere to reset the midi controller between songs in case anything gets stuck/confused. I’d love to also give credit for this file, but I can’t figure out where I got it anymore.

Download (1.4 kB)

Comments (0)

Filed under: Programs/Libraries,Python |

Gameboy Screenshot Gallery

Posted on July 8th, 2014 @ 3:54 pm by Zerker

Hello everyone. For the past month or two, I started a project to collect screenshots from (hopefully) every game released for the original Gameboy, and arrange them into a screenshot gallery. Here it is (with some samples), in TWO versions:

Black & White Gallery

Pea-Soup Green Gallery

Comments (0)

Filed under: Uncategorized |

Jetpack levels

Posted on May 17th, 2014 @ 7:31 am by Zerker

So I was reminded recently that I have a bunch of Jetpack levels on my hard drive I’ve never uploaded. Many of these aren’t really that good, some are sort-of embarrasing (World of Words Part 2), but there are a few Gems I’m mostly proud of. Some might actually be created by my friends, but it’s been so long I can’t tell them apart any more. Here they are:


Comments (0)

Filed under: Levels |