You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

[TI-84+CE]ConvPNG

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

0
b/Software Downloads publicado por u/MateoConLechuga March 23, 2016, 07:12:00 PM
ConvPNG Link: Download

ConvPNG has just gotten a massive update, which will be extremely useful for C and ASM programmers alike. It can now take groups of images, determine the best palette for each group, and then convert each image using the palette. It also allows reserving a certain color for transparency, so you can have transparent sprites. Rather than being just a command-line tool, it now is more of a hybrid and uses 'convpng.ini' in the images directory in order to easily be able to group and convert images. A sample one with 2 palettes (or groups) may look like this:

#GroupC            : gfx_group_1
#Compression       : none                 (Compression type: none, rle, lz77)
#TranspColor       : 255,255,255,255      (Transparent color: r,g,b,a - a will most always be 255)
#Sprites           :                      (List of sprites for this group to convert)
image0
image1
image2

#GroupC            : gfx_group_2
#Compression       : lz77                 (Compression type: none, rle, lz77)
#Sprites           :                      (List of sprites for this group to convert)
image3
image4
image5
image6


It also supports rle and lz77 compression of images, in order to help reduce size. Huffman was considered, but doesn't really perform well for palette-driven images. Color conversion is also a lot closer thanks to help from Runer. Overall, I hope that you all will find this quite useful :)

Let me know if you need any help working with it; or if you have and suggestions/comments. Enjoy! :D

For the technically inclined, it uses a combination of mediancut and K-means in order to choose the best palette for the groups of images.
Last Edit: April 21, 2016, 02:20:09 PM by DJ Omnimaga
Inicia sesión o crea una cuenta para dejar un comentario
u/tr1p1ea March 23, 2016, 09:16:43 PM
Looks very nice Mateo.

The compression is a nice touch. I had experimented with lz77, huffman and pucrunch in the early days of the CSE.

Will you be providing decompression routines for users as well (if not so already)?
u/c4ooo March 23, 2016, 09:43:25 PM
This has been very useful for converting Minecraft assets into asm code :)
u/Dream of Omnimaga March 24, 2016, 04:01:02 AM
That is nice Mateo. I was always wondering how one could easily generate a decent palette for use in 8 bits mode for his CE graphics. Glad that they're compressed as well
Start a Discussion

b/Software Downloads

Programs and utilities for TI, HP, Casio calculators, as well as Android, PC and game consoles.

21
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal