yaoshaojun / grafx2

Automatically exported from code.google.com/p/grafx2
0 stars 0 forks source link

JASC palette import #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What would you like to be changed or added ?

Hi,

i hope i don't overlooked something but until now i don't had find 
anything like this in the program. What i exactly mean is 2 buttons 
"import pal" "export pal" (or load/save ... its shorter :P), to get/put 
the palette from/to file. Until now to get a new picture with an different 
palette as the grafx2 palette you must open an existing picure with the 
desired palette and change it or to start with a blank picture you have to 
take an other grafic app create a picture with it, load the desired 
palette there, save that file and than open it with grafx2. That slows 
painting and makes grafx2 dependent on other grafic utilitis if u want an 
other palette. I think that these buttons are really something a pixel 
paint app needs because palettes are a part of the heart of pixelpainting.

The best palette format i think is the Jasc Palette format, I attached a 
file with this format. It's easy to handle/edit :) because its in decimal 
and i've seen many apps that can use it. For applying an different palette 
to an picture Paintshop Pro 3.1 offers the options: "Nearest Color", 
"Error Diffusion" and "Maintain Indexes" (maybe that info generates some 
useful thoughts if the issue is accepted).

... gretings HoraK-FDF

Original issue reported on code.google.com by HoraK-...@web.de on 18 May 2009 at 7:41

Attachments:

GoogleCodeExporter commented 9 years ago
You can edit the palette by clicking the "pal" button in the menu. There are 
many 
powerful features here other editors don't have.
And you can also save and load them going to the save/load screen and selecting 
the 
"pal" format. The picture will either use nearest color or maintain indexes. No 
error diffusion, sorry.
Our pal format is binary and not editable by hand.

Last note : you can edit the skin file if you want to edit the default palette.

Did you read our great documentation ? you can get it inside the program by 
pressing 
F1, or online :
http://code.google.com/p/grafx2/wiki/Palette

Original comment by pulkoma...@gmail.com on 18 May 2009 at 7:47

GoogleCodeExporter commented 9 years ago
ahh there i never looked for palette laoding / saving i thought it was only for 
images loading :P than i must change all what i wrote under "What would you 
like to 
be changed or added ?" to "JASC Palette support would be nice" and the headline 
to 
"JASC Palette Support" should i make a new issue for that?

Original comment by HoraK-...@web.de on 18 May 2009 at 8:39

GoogleCodeExporter commented 9 years ago
No, we can rename this one :)

However this wouldbe a new feature, so i'm delaying it to milestone 2.1. We are 
trying to fix the last annoying bugs to release a perfect 2.0, after that we'll 
add 
many features.

Original comment by pulkoma...@gmail.com on 18 May 2009 at 8:49

GoogleCodeExporter commented 9 years ago

Original comment by pulkoma...@gmail.com on 26 May 2009 at 7:51

GoogleCodeExporter commented 9 years ago
Is it possible to generalize this into a "load palette from image" feature? 
Where you
could opt to load just the palette from an image file, while leaving your 
current
image data intact.. or would that be a separate feature request?

Original comment by erikas.aubade@gmail.com on 1 Jul 2009 at 1:23

GoogleCodeExporter commented 9 years ago
You can already do that by loading a picture to the spare page then copying the 
palette to it. 
It would be complicated to only load the palette : if you load a 24bit bmp or 
pcx, 
we usually build a palette from the pixel data. This could not be done without 
loading the pixel data into the program. The result would be that some times 
(with 
256color pcx/bmp or other formats) it works, and sometime the screen flash red 
without obvious reason as the image loads fine otherwise.

Original comment by pulkoma...@gmail.com on 1 Jul 2009 at 2:09

GoogleCodeExporter commented 9 years ago
I agree with Pulkomandy about this: Sometimes you'd want the image to be 
remapped to 
the new palette, sometimes you'd want to replace palette completely. The 
current 
button "Copy.." already proposes these two options.

Original comment by yrizoud on 1 Jul 2009 at 2:20

GoogleCodeExporter commented 9 years ago
Hi,

I think the option error diffusion on palette load is very needed feature for 
example
if u paint pictures for a websites and wan't to use a websafe palette you must 
paint
with only 216 colors, I think its better to paint it with an nice 256 color 
palette
and than error diffuse it to the websafe palette. Or if you painted with an 
palette
and than you get/created a better palette that maches better to the content of 
the
image or your likes and the nearest colors are to far away or the indexes don't
contain a similar color you get an ugly misscolored picture. Here some sites 
that can
be a great help if you maybe decide to implement it:
http://en.wikipedia.org/wiki/Error_diffusion
http://en.wikipedia.org/wiki/Halftone
http://en.wikipedia.org/wiki/Floyd-Steinberg_dithering
The last one shows pseudocode.

Should i make an new Issue for that?

... greetings HoraK-FDF

Original comment by HoraK-...@web.de on 24 Aug 2009 at 8:46

GoogleCodeExporter commented 9 years ago
Automatic error diffusion will make your picture look somewhat nicer at first 
glance, but not so much easier to edit. So I think it's better to not do it and 
let 
the user work on that. You should have started by selecting the correct 
palette, 
anyway.

Who is still using that websafe thing ? even my windows 3.11 box can display 
truecolor images !

Original comment by pulkoma...@gmail.com on 24 Aug 2009 at 10:24

GoogleCodeExporter commented 9 years ago
Hi,

mmmh not automatic it must be selectable before palette load. And yes the 
websafe
thing isnt used often these days but i try to think in all directions not only 
in the
most common of today.

... greetings HoraK-FDF

Original comment by HoraK-...@web.de on 25 Aug 2009 at 5:02

GoogleCodeExporter commented 9 years ago
Hi,

does grafx2 automatically decide witch mode to use? (nearest color or maintain 
indexes)

... greetings HoraK-FDF

Original comment by HoraK-...@web.de on 30 Aug 2009 at 10:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
fixed in r1137

Original comment by pulkoma...@gmail.com on 1 Nov 2009 at 9:56

GoogleCodeExporter commented 9 years ago
Hi,

I have a problem when i load a palette, I first started to draw with grafx2 on 
1024x768 then I decided to move to 800x600 so i used gimp to select the image 
part and copyed it to a new image and saved it back, but gimp disorted the 
palette and after trying to load the old palette in grafx2 it uses Maintain 
Indexes which produces a wiered colored picture.
In Comment 1 is the line "The picture will either use nearest color or maintain 
indexes." but where do I select this on palette-load? Maybe i overlooked 
something. Schould I make a new Feature request if it not exist?

... greetings HoraK-FDF

Original comment by HoraK-...@web.de on 16 Aug 2010 at 9:22

GoogleCodeExporter commented 9 years ago
I don't really understand what pulkomandy meant with this sentence, and sorry 
nobody answered your question c11.
You could say Grafx2 always uses "Maintain indexes" when you load a palette. 
There is however a way to convert an image to a palette:
1) Load image (the one where the palette is scrambled)
2) Switch pages (tab)
3) Load your palette, or any image which has the right palette.
4) Copy to Spare (shift-tab) - "Palette and Remap"
5) Switch pages (tab)
6) Your image is converted. If the result is fine, save it.

Original comment by yrizoud on 16 Aug 2010 at 11:26

GoogleCodeExporter commented 9 years ago
Hi,

worked perfectly thanx :) but a special palette load/save menu would be awesome.

... greetings HoraK-FDF

Original comment by HoraK-...@web.de on 23 Aug 2010 at 1:09