Welcome to TalkGraphics.com
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32
  1. #11
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,567

    Default Re: How to recolor 16 color image to other 16 color palette?

    that original image you posted it is not a 16 color 4bit image - it is 24bit colour

    if you posted up a 4bit image it may be that forum converted it and you can try reposting a zipped image

    if you are happy to have the color palette reduced to 4bit in photoshop, I can do that before I recolor, but a 4bit image source would be better
    -------------------------------
    Nothing lasts forever...

  2. #12
    Join Date
    Jun 2017
    Posts
    21

    Default Re: How to recolor 16 color image to other 16 color palette?

    Yes, 'cause here's conversion result:

    Original:
    Click image for larger version. 

Name:	example.png 
Views:	226 
Size:	5.0 KB 
ID:	117810

    Result:
    Click image for larger version. 

Name:	result.png 
Views:	223 
Size:	12.0 KB 
ID:	117811

    Miro

  3. #13
    Join Date
    Jun 2017
    Posts
    21

    Default Re: How to recolor 16 color image to other 16 color palette?

    I'm sorry for not true 4-bit images, these examples are taken from emulator.
    I will post in few moments 4-bits.

    Miro

  4. #14
    Join Date
    Jun 2017
    Posts
    21

    Default Re: How to recolor 16 color image to other 16 color palette?

    Here are true 4-bit images and palettes:

    source palette:
    4-bit ULLA.bmp
    target palette:
    4-bit VDC.bmp
    original 1:
    eimanager.bmp
    original 2:
    fist.bmp

    Miro

  5. #15
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,567

    Default Re: How to recolor 16 color image to other 16 color palette?

    thanks - not sure how long it will take....
    -------------------------------
    Nothing lasts forever...

  6. #16
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,567

    Default Re: How to recolor 16 color image to other 16 color palette?

    ok this has been changed - it only uses 8 of the 16 colors which is extra work actually probably not...

    but overall this is a lot of work, but if this is ok then you know it can be done

    eimanager out [8].bmp
    -------------------------------
    Nothing lasts forever...

  7. #17
    Join Date
    Jun 2017
    Posts
    21

    Default Re: How to recolor 16 color image to other 16 color palette?

    Thank you very much!
    Result is better, but not best... maybe it is for destination palette.

    I contacted author of renderer and he got me full destination palette in color values:
    { 0, 0, 0}, /* Black */
    { 85, 85, 85}, /* Gray */
    { 0, 0, 170}, /* Blue */
    { 85, 85, 255}, /* Light Blue */
    { 0, 170, 0}, /* Green */
    { 85, 255, 85}, /* Light Green */
    { 0, 170, 170}, /* Cyan */
    { 85, 255, 255}, /* Light Cyan */
    {170, 0, 0}, /* Red */
    {255, 85, 85}, /* Light Red */
    {170, 0, 170}, /* Magenta */
    {255, 85, 255}, /* Light Magenta */
    {170, 85, 0}, /* Brown */
    {255, 255, 85}, /* Yellow */
    {170, 170, 170}, /* Light Gray */
    {255, 255, 255}, /* White */

    If I can ask... Try you to adapt, or better give me instructions how to do it and what a software I need?

    Thank you for all.
    Miro

  8. #18
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,567

    Default Re: How to recolor 16 color image to other 16 color palette?

    should be more accurate with the defined values:

    eimanager out remapped.bmp
    -------------------------------
    Nothing lasts forever...

  9. #19

    Default Re: How to recolor 16 color image to other 16 color palette?

    I took palette file from a ZX Spectrum emulator and modified it to use colour values from this thread and saved it as CGApalette. Now all that needs to be done is select 4bit colour , no dithering and the CGApalette to get image converted to those colours.

    Using the image on page 1 of this thread gives me this:
    exportimport.bmp

  10. #20
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,567

    Default Re: How to recolor 16 color image to other 16 color palette?

    As for what is involved:

    you open the file and then you open it's palette to edit - you [double]click on each color in turn, to open the color dialog and change it's vaue to the one you want to replace it with

    I found it far easier to do this in Corel PaintShopPro X9 than Photoshop, but my Photoshop is old and changing palettes is, to say the least, more work than it should be - PSP X9 was straight forward in comparision [but photshop CC may be ok, I don't know]

    another thing - there is one noticable difference in the new palette: it has a 'brown' color in place of an 'olive-greenish' one and in the case of the Fist image that may mean the background no longer looks right, but that is something you may have to live with...

    quick run down of the steps in PSP X9 [wich has a thirty day free trial]:

    open the program and make sure you are in edit tab, and close any image that opens by default - open the image you want to edit - then go to menu: image/palette/edit palette

    Click image for larger version. 

Name:	s1.png 
Views:	245 
Size:	55.2 KB 
ID:	117825

    this will open the edit palette dialog and you will see the current value of the selected color shown on the right - to edit double click the color and that will open the color editor, once there make sure you are on it's slider tab, and rgb sliders is set in the drop down menu above the sliders

    Click image for larger version. 

Name:	s2.jpg 
Views:	243 
Size:	47.1 KB 
ID:	117826

    you can now enter the new values in the boxes at the end of the sliders - which colour you select is your choice, they will not always be in the same order, and some images may have few colors - you need to refer to the original value in each case and select the most appropriate new one - eg:

    Click image for larger version. 

Name:	s3.png 
Views:	229 
Size:	21.9 KB 
ID:	117827

    click ok - and the edit palette dialog will now show the new value for that color:

    Click image for larger version. 

Name:	s4.png 
Views:	228 
Size:	6.5 KB 
ID:	117828

    when your done click ok to leave the edit palette dialog

    ...

    at this point you may be thinking 'I wish there was an easier way' - and so am I - but I know of no automated system that is going to able to cope, unless you want to use some thing like imagemagick, which means using command line and programming and I understand is capable of changing 255-251-0 to 255-255-85 regardless the position in the table, but it's out of my experience - anyway you may want flexibility in which of the new palette colors you choose

    so good luck with this - I enjoyed playing with it, don't get to use PSP much these days...
    -------------------------------
    Nothing lasts forever...

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •