DMI -> PNG unpacker

Mapping Ideas and Sprite Galleries
Post Reply
LiamLime
Joined: Tue Aug 25, 2015 12:59 pm
Byond Username: LiamLime

DMI -> PNG unpacker

Post by LiamLime » #125349

Ever had the pleasure of doing this?

Image

It's fun, ain't it? Well I made a DMI unpacker, which takes a DMI file and unpacks it into its component images.

So instead the process looks like this:

Image

If nothing else, this should at least make updating the wiki easier, since extracting icons is a pain.

Source and instructions provided on Github DMI2PNG.

Unfortunately I had to share this under GPL, I'd've preferred MIT, but I'm using some MediaWiki stuff, which forces me into GPL.
The bureaucracy is expanding to meet the needs of the expanding bureaucracy.
LiamLime
Joined: Tue Aug 25, 2015 12:59 pm
Byond Username: LiamLime

Re: DMI -> PNG unpacker

Post by LiamLime » #200969

I've realised I never made a how-to video on this, so I made one now!

[youtube]b_ciBo1fHI0[/youtube]

In addition, ErikHanson expanded on it and made this online version.
The bureaucracy is expanding to meet the needs of the expanding bureaucracy.
User avatar
Thunder11
In-Game Admin
Joined: Fri Apr 18, 2014 12:55 pm
Byond Username: Thunder12345
Github Username: Thunder12345
Location: Scotland, UK

Re: DMI -> PNG unpacker

Post by Thunder11 » #200982

But how easy would it be to repack it back into a dmi?
ImageImage
Spoiler:
IcePacks wrote:
MrFoster wrote:Back in my day, we didn't complain about lag! We used it to queue attacks!
That's thinking on your feet, soldier!
Quality Paprika from #coderbus wrote:[11:35.52] <paprika> holy crap so yeah i don't care about your opinion at all
oranges wrote:
Excuse me? Thats for sensible and calm rational debate, not for senseless whining.
Resident Catmin, please direct catposting to: https://tgstation13.org/phpBB/viewtopic.php?f=37&t=5578
LiamLime
Joined: Tue Aug 25, 2015 12:59 pm
Byond Username: LiamLime

Re: DMI -> PNG unpacker

Post by LiamLime » #201013

Not easy at all. This is useful for when the individual icons are what you want - like if you're creating a page called "Recipes" on the wiki and need a billion sprites exported. Or if you want to use the sprites in something that isn't byond.

If you want to create a custom sprite sheet for use out of Byond, you can take a look at Sprite Sheet Packer. It's pretty neat.

If you want to unpack -> edit -> repack, then I have a much older guide for that. Takes quite a bit of time for me to get to the point, but hey, at least it exists:

[youtube]kXDcYtAfjrM[/youtube]
The bureaucracy is expanding to meet the needs of the expanding bureaucracy.
User avatar
MrEousTranger
Joined: Thu May 19, 2016 11:54 pm
Byond Username: Mr.EousTranger
Location: Stuck in 2005.

Re: DMI -> PNG unpacker

Post by MrEousTranger » #201027

Holy shit...

Spoiler:
YOU CAN SHAVE IAN??????
User avatar
Atlanta-Ned
In-Game Game Master
Joined: Fri Apr 18, 2014 2:11 pm
Byond Username: Atlanta-ned

Re: DMI -> PNG unpacker

Post by Atlanta-Ned » #201158

This helps me in ways you wouldn't expect.
Statbus! | Admin Feedback
OOC: Pizzatiger: God damn Atlanta, how are you so fucking smart and charming. It fucking pisses me off how perfect you are
LiamLime
Joined: Tue Aug 25, 2015 12:59 pm
Byond Username: LiamLime

Re: DMI -> PNG unpacker

Post by LiamLime » #201325

Atlanta-Ned wrote:This helps me in ways you wouldn't expect.
Should we be scared?
The bureaucracy is expanding to meet the needs of the expanding bureaucracy.
User avatar
danno
Joined: Wed Apr 16, 2014 5:07 pm
Byond Username: Dannno
Location: e-mail me if you want a pizza roll

Re: DMI -> PNG unpacker

Post by danno » #203137

what a good lad you are, liam :)
Hornygranny wrote: wtf i like danno now
Image
I don't even play ss13 anymore, pretty much due to dannos stupid bullshit
Post Reply

Who is online

Users browsing this forum: No registered users