Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Ziaxx ! (Registered 2020-10-20) You are not logged in 
CSDb User Forums


Forums > C64 Pixeling > koala otpimizing
2007-03-08 02:41
Oswald

Registered: Apr 2002
Posts: 4610
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 ?:)
 
... 43 posts hidden. Click here to view all posts....
 
2020-09-20 22:44
wil

Registered: Jan 2019
Posts: 18
Inspired by this thread, I made a tool that tries out different variants of rearranging the pixels in a Koala pic. In addition, it removes color information where less than 3 forground colors are used in a 8x8 area (or 8x4 if we count fat pixels) and sorts the colors accroding to a palette. All these features together help in compressing the Koala pic without changing the appearance.
The rearrranging requires a different display routine, since the bytes need to be unshuffled before displaying.
For packing I used exomizer.

All in all I got a filesize of 19045 byte including load address, decompression routine, unshuffling routine and display routine. I'm quite sure there is still plenty of room to optimze it.

The tool (it can be also used to optimize Koala pics without changing the format) and the packed example of the 3 file are here:
Pixelshuffler
2020-09-20 22:53
Zyron

Registered: Jan 2002
Posts: 2242
I normally use Pico v1.3. How good is that compared to the other options mentioned in this thread?
2020-09-20 23:49
wil

Registered: Jan 2019
Posts: 18
Quote: I normally use Pico v1.3. How good is that compared to the other options mentioned in this thread?

I tried out Pico, it looks like a great tool, but what I understood is that you have to make some decisions to make it sorting? I only tried out the kill color function (CBM+K) which didn't give a good result yet.
2020-09-21 01:49
soci

Registered: Sep 2003
Posts: 450
Compress all 3 together as I could easily get 18580 bytes without any tricks:

https://singularcrew.hu/temp/3koala-soci-singular.prg
2020-09-21 15:58
wil

Registered: Jan 2019
Posts: 18
Quote: Compress all 3 together as I could easily get 18580 bytes without any tricks:

https://singularcrew.hu/temp/3koala-soci-singular.prg


Awesome! I saw that you had optimized Koalas in your solution - which program did you use for Koala cleaning/optimization?
2020-09-22 08:23
soci

Registered: Sep 2003
Posts: 450
That must be a side effect as I was lazy to rip the pictures and converted from screenshots instead.
2020-09-26 16:34
wil

Registered: Jan 2019
Posts: 18
Quote: That must be a side effect as I was lazy to rip the pictures and converted from screenshots instead.

A very positive side effect :-) - the resulting version is well suited for packing. What software or cartridge did you use to rip it?
2020-09-27 08:10
Burglar

Registered: Dec 2004
Posts: 830
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
2020-09-27 16:19
wil

Registered: Jan 2019
Posts: 18
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!
2020-09-27 20:35
Burglar

Registered: Dec 2004
Posts: 830
Quoting wil
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.

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 :)
Previous - 1 | 2 | 3 | 4 | 5 | 6 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Didi/Laxity
Flex/Artline Designs
Black Beard/Abyss, A..
Guests online: 104
Top Demos
1 Uncensored  (9.7)
2 Memento Mori  (9.6)
3 Edge of Disgrace  (9.6)
4 Coma Light 13  (9.6)
5 Comaland 100%  (9.6)
6 Unboxed  (9.6)
7 The Shores of Reflec..  (9.6)
8 Lunatico  (9.5)
9 Remains  (9.5)
10 C=Bit 18  (9.5)
Top onefile Demos
1 Crystal Gazer  (9.5)
2 Dawnfall V1.1  (9.5)
3 Smile to the Sky  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Rewind  (9.5)
6 Postcard from Earth 2  (9.5)
7 Instinct  (9.4)
8 The Night It Snowed  (9.4)
9 Tribute to Ben - Las..  (9.4)
10 In Memoriam BHF  (9.4)
Top Groups
1 Booze Design  (9.4)
2 Censor Design  (9.4)
3 PriorArt  (9.4)
4 Oxyron  (9.3)
5 Triad  (9.2)
Top Coders
1 Sparta  (9.9)
2 Axis  (9.8)
3 Graham  (9.8)
4 Crossbow  (9.8)
5 Lft  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2020
Page generated in: 0.512 sec.