| |
Oswald
Registered: Apr 2002 Posts: 5094 |
koala otpimizing
Hi Everyone,
I know there's a c64 tool out there that helps with optimizing koala pictures for packing, but no idea what it is called. Anyone knows?:) Timanthes would do the job for me aswell with its nibble swapper tool, but is there a way to load/save a native c64 koala format picture with it ? *.prg doesnt works, what format does it expect to be .prg anyway ?:) |
|
... 80 posts hidden. Click here to view all posts.... |
| |
Burglar
Registered: Dec 2004 Posts: 1101 |
Here's an easy one png2prg 0.1. converts 320x200 and vice screenshots to koala. It should optimize a bit automatically, but your miles may vary..
ps: only works if the screenshot contains a multicolor bitmap |
| |
wil
Registered: Jan 2019 Posts: 62 |
Quote: Here's an easy one png2prg 0.1. converts 320x200 and vice screenshots to koala. It should optimize a bit automatically, but your miles may vary..
ps: only works if the screenshot contains a multicolor bitmap
Your png2prg is a great tool! I tested it with PNG version of the three reference images and it got everything right, including that the background in the "Short Circuit N0.5 alive" pic is white.
It seemd, however, that the tool used by Soci was a different one, since the result is less compressable than Soci's version, so I would be still interested in what he used.
Anyway, I bookmarked your png2prg for future use. Also, the golang code looks very tidy - gotta learn this language one day! |
| |
Burglar
Registered: Dec 2004 Posts: 1101 |
Quoting wilIt seemd, however, that the tool used by Soci was a different one, since the result is less compressable than Soci's version, so I would be still interested in what he used.
so am I, it could be interesting to see what method it uses, so I can build it into png2prg as well.
so Soci, spill the beans :) |
| |
Burglar
Registered: Dec 2004 Posts: 1101 |
Time to un-necro this thread again. I just released png2prg 0.8 which should be quite a bit better on optimizing images, especially compared to png2prg 0.1.
The recently released SPOT - Sparta's Picture Optimizing Tool V1.1 will probably give you the best size-optimized result, while my tool focuses on normalization, ease-of-use for demo-coders and supporting all standard graphics modes. |
| |
ChristopherJam
Registered: Aug 2004 Posts: 1409 |
I got the three images in the corpus along with a slideshow down to 17307 bytes \o/
It's a bit slow to decrunch though - may as well be loading off tape..
Compressed data sizes for the three images:
untitled (floris) - 6755 bytes
song_of_the_sunset - 4594 bytes
short_circuit - 5624 bytes Tinned Koalas
Mostly worked on this in November/December 2023, just didn't get around to releasing until today. It does build on the ANS work for bitpickler of course. |
| |
Jetboy
Registered: Jul 2006 Posts: 337 |
Wouldn't it compress better if the order of bytes was changed? We were doing some research on it back in the days, and storing data in columns was usually giving better compression. For pictures with dithering, storing first odd bytes, then even bytes was giving even better results. |
| |
Fungus
Registered: Sep 2002 Posts: 686 |
I always get best results with pico 1.3 and my brain. Check the short circuit loading pic on the n0s release, it's hand optimized as well with pico and see if it's any better. |
| |
Burglar
Registered: Dec 2004 Posts: 1101 |
+-------------+-------------+-------------+
| spot+dali |png2prg+dali | koalacanner |
+-------------+-------------+-------------+
| 7349 | 7546 | 6755 | (Untitled/Floris)
| 5155 | 5464 | 4594 | (Song of the Sunset/Mermaid)
| 5986 | 6155 | 5624 | (Short Circuit/Karen Davies)
+-------------+-------------+-------------+
I think this stat belongs in this thread :)
Using SPOT 1.2, png2prg 1.6 and Tinned Koalas.
<cjam> So, spot-style 'optimizing' for png2prg 1.7? :D
I am not sure, for me cleanliness of the koala is the goal. Also, the better result may be because spot combines hi/lo nibbles in colorram, saving 500 bytes. I have no interest in that, I want to output standard format always. But, I could add a cli-flag for it...
@fungus, can you extract that koala from short circuit and pack with dali? would be fun if ur handiwork beats png2prg or even spot :) |
| |
Krill
Registered: Apr 2002 Posts: 2980 |
Quoting ChristopherJamI got the three images in the corpus along with a slideshow down to 17307 bytes \o/
It's a bit slow to decrunch though - may as well be loading off tape.. This sort of flips the table on the entire premise of optimising C-64 multicolour bitmaps for LZ-style compression.
If it only wasn't THAT slow to decode. =) |
| |
Fungus
Registered: Sep 2002 Posts: 686 |
pico 1.3+dali = 5980 |
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 - Next |