carlosantoniocruz / grafx2

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

Load/Save palettes #550

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be great to be able to load/save palettes like you do in Deluxe Paint. 
I have problems usually working with different assets on different files that 
all share a same palette. If I could load the same palette for all of them it'd 
be great (and I suppose this would need a picture color remap function too)

Original issue reported on code.google.com by k.dron...@gmail.com on 18 Mar 2014 at 12:59

GoogleCodeExporter commented 8 years ago
If you "Save" and choose the format PAL, it will save a file with only the 
palette data (256 RGB triplets) When you Load the resulting file, it replaces 
the palette of the image you're editing.

But for consolidating a common palette, you'd better use the following tools 
and functions, which should help you move colors between two open documents 
(main and spare, using TAB to switch between them) 
*) In the palette screen, you can click and hold to select a group of colors, 
and Ctrl-C to copy them in an internal color clipboard. You can paste this 
group (Ctrl-V) in a different position in the palette, even after you've 
switched to the other document. You'll probably want to paste in unused color 
slots (Click the Used button to tag used colors, and X-swap to move colors 
around, or "Reduce - to Uniques" to automatically sort useful colors at the 
beginning of the palette and blacken all others)
*) Right-click the Page icon and select "Copy to spare - palette and remap" : 
This copies the current image's entire palette into the spare, and modify the 
other spare's pixels to match the closest (new) colors. It's most powerful if 
you have previously added the necessary colors in the current palette.
*) When you grab a brush in one image and switch to another image that has 
different palette : You can use F12 to recolorize the brush to current palette 
(changes only the brush) If the result is not good enough (the current palette 
didn't have suitable colors), you can use F11, "Get brush colors": It will add 
to the current image all colors that were used in the brush, without creating 
duplicates. These colors will be put in unused colors of current image.

Original comment by yrizoud on 21 Mar 2014 at 11:11

GoogleCodeExporter commented 8 years ago
Issue 551 has been merged into this issue.

Original comment by yrizoud on 21 Mar 2014 at 11:12

GoogleCodeExporter commented 8 years ago
Oh, and while you're still trying to define a common palette from multiple 
images, you may want to Sort the palette. Then when you see 2 colors or more 
that are too similar, select the group and click Merge, their RGB values will 
become actually identical (using an average, weighted in favor of colors that 
are used by more pixels). Then you can use "Reduce - to uniques" to remove the 
duplicates, it will merging pixels to use the single instance of the color that 
is kept.

Original comment by yrizoud on 21 Mar 2014 at 11:29

GoogleCodeExporter commented 8 years ago
It's nice to see there are workarounds for most of this stuff I wanna do with 
it, but it'd be great to directly implement certain things, like the "Remap" 
function.

Also, can we get the possibility to drag and drop colors to sort them manually?

I'm gonna try your suggestions for the time being!

Original comment by k.dron...@gmail.com on 22 Mar 2014 at 12:33

GoogleCodeExporter commented 8 years ago
Can you explain what you'd call a Remap function ?
To re-order the palette manually, you can use the X-swap button of the Palette 
screen : Select a single color or range, then click X-Swap, then click the 
target (starting) color. The color entries are exchanged, and the image's 
pixels are modified accordingly.

Original comment by yrizoud on 22 Mar 2014 at 1:45

GoogleCodeExporter commented 8 years ago
When you Remap in DPaint it works likethis:

You load a picture, you load a different palette and you hit Remap. The 
picture's colors will get remapped to get as close as it can to the originals.

So if you have the same colors, just in different orders, it would work just 
fine and your picture will display perfectly.

Original comment by k.dron...@gmail.com on 22 Mar 2014 at 2:29

GoogleCodeExporter commented 8 years ago
So, in brief, it works exactly like what you have for Brush, but for the whole 
picture.

Original comment by k.dron...@gmail.com on 22 Mar 2014 at 2:30

GoogleCodeExporter commented 8 years ago
Then you can get the same in Grafx2 : Load an image which has "wrong" palette, 
switch pages (TAB), load the correct palette (or any image which has correct 
palette), right-click the "Page" icon and select 'Copy to spare - palette and 
remap'.

Original comment by yrizoud on 22 Mar 2014 at 8:01

GoogleCodeExporter commented 8 years ago
Yeah, as I said, there could be workarounds, but a simpler option for any of 
these could clearly be more convenient. Perhaps I need the spare page for 
something else.

Original comment by k.dron...@gmail.com on 22 Mar 2014 at 11:24