Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Standard image format?
2015-05-22 08:44
ChristopherJam

Registered: Aug 2004
Posts: 1409
Standard image format?

Are their any file formats around that are commonly used for moving c64 images between various tools that explicitly specify c64 palette indices?

The .gifs and paletted .pngs I've seen often have palettes in a random order, that don't necessarily have all 16 c64 colours in their table anyway, and both those and 24 bit screencaps tend to use one of several different palettes (pepto, godot etc). On top of that, screencaps frequently have their aspect ratio 'fixed', so many of the pixels are blends anyway.

I know there are a few graphics mode specific formats like .kla around, but I'm looking for something a bit more general purpose that doesn't make assumptions about how it will be displayed.
2015-05-22 09:19
Oswald

Registered: Apr 2002
Posts: 5094
I think there's no such format.

But I'd use native format for "moving images across tools" since it is more transparent, than converting 24bit colors back and forth while messing with palettes.
2015-05-22 09:26
ilesj

Registered: Jun 2012
Posts: 27
Not that I know of. Managing the palette is a bit of a hassle, but once you have the colors set up, exchanging bitmaps between programs gets easier. I use pepto colors arranged in C64 palette order. Depending on application I use gif/png and even bmp, since some tools don't support any other formats for importing.

Many graphics editors allows you to arrange and edit the palette, or load a palette from preset/file. Making use of that you can get the palette in correct order and include the missing colors, for example.

With pepto palette and C64 palette order, most of the time exchanging bitmaps between works fine.

An exchange format would be nice, but not very useful until several tools would support it.
2015-05-22 12:25
MagerValp

Registered: Dec 2001
Posts: 1078
I always use a standard PNG with C64 palette order, ignoring RGB values. For MC I typically just skip every 2nd pixel in the converter code.
2015-05-22 13:45
Mr. SID

Registered: Jan 2003
Posts: 424
I never use paletted files, but only 24bit PNGs.
I have a piece of python code that finds all colors and uses a bit of fuzzy matching to assign them to C64 color indices. I've never seen it fail on an image, except where it had more than 16 colors.
2015-05-22 14:11
chatGPZ

Registered: Dec 2001
Posts: 11386
i just use bmp with a fixed palette.

for a palette independent format, you could use the 4bit godot format.... which is very uncommon outside godot however :=) (BUT it supports even pictures > 320x200 iirc)
2015-05-22 19:59
soci

Registered: Sep 2003
Posts: 480
Quote: i just use bmp with a fixed palette.

for a palette independent format, you could use the 4bit godot format.... which is very uncommon outside godot however :=) (BUT it supports even pictures > 320x200 iirc)


That's interesting. So how does the godot format support different sizes?
2015-05-22 20:22
chatGPZ

Registered: Dec 2001
Posts: 11386
iirc its organized in 8x8 tiles and you can have any number of them
2015-05-22 23:28
soci

Registered: Sep 2003
Posts: 480
Godot pictures are fixed at 40x25. But if Godot clips would have been mentioned then I'd not wonder ;)
2015-05-22 23:42
chatGPZ

Registered: Dec 2001
Posts: 11386
ah yes! "clips", thats what i was thinking of, i guess :)
2015-05-23 04:50
ChristopherJam

Registered: Aug 2004
Posts: 1409
Looks like I'll be sticking with pepto pngs for now. Thanks all.
2015-05-24 01:36
SIDWAVE
Account closed

Registered: Apr 2002
Posts:
explicitly ?
no

not a single format
2015-05-24 05:01
Endurion

Registered: Mar 2007
Posts: 73
Any format that can be loaded with .NETs runtime. C64Studio then expects an 8bit index image with exact colors or will show an import dialog which tries to auto-map colors. Auto-mapping can be manually overridden to force a certain target color.

When copying images to the clipboard 8bit index will be used. 4bit might be more logical but half byte pixels are a nuisance.
2015-05-24 06:57
soci

Registered: Sep 2003
Posts: 480
It must be PPM then obviously, as it's fully supported by the tools I use ;)
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
Alakran_64
Guests online: 94
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.063 sec.