[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

reserving specific colors in 256 color set

Posted on 2004-09-14
10
Medium Priority
?
206 Views
Last Modified: 2011-08-18
I'm trying to create 256 color PCX files, while reserving the first 16 colors for text colors.

How can I save my image as a PCX file, and reserve the first 16 colors for a primary set of colors?

These 16 colors are not being displayed in the PCX file, but are required in order to display text on the target application.

The images I have do not use the full 256 colors, and infact use only about 32-to-200 colors.
0
Comment
Question by:Axter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 30

Expert Comment

by:weed
ID: 12056068
Change your color mode to Indexed Color. When the options box pops up choose "Custom" for the palette. There you can edit the exact palette to be used. Remember to save that palette from the same options box so you can load it later onto another image.
0
 
LVL 30

Author Comment

by:Axter
ID: 12057858
>>There you can edit the exact palette to be used.

Sorry, but that method doesn't work.  I already tried that method.
When the palette is modified, it automatically changes the color of the current image.

I need to be able to load the image and still keep the first 16 colors set to the same color.

0
 
LVL 30

Expert Comment

by:weed
ID: 12057922
If you limit your image to 256 colors or less, using a set color palette, it MUST change the color of the current image. You dont have any other colors to use. You need to create a custom palette, and save it, then be able to load it and apply it to other images.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 30

Author Comment

by:Axter
ID: 12058004
>>If you limit your image to 256 colors or less, using a set color palette, it MUST change the
>>color of the current image.
I'm aware of that.

My target image does not use all 256 colors.  In fact most of the images only use 32-200 colors.

So I do have index values to play with.
The problem is getting the images loaded so that they only occupy the color index above the first 16.

>>You need to create a custom palette, and save it, then be able to load it and apply it to
>>other images.

This does not work for several reasons.
If I already have an image, and I load the palette, it will change the current image color, which is not what I want.

If I try to paste the image after the palette is loaded, the image is displayed only using the previously loaded palette.
0
 
LVL 30

Author Comment

by:Axter
ID: 12058119
Things I've already tried:

Method A:
Open target PCX file.
Load desired palette via Image->Mode->Color-Table
*Fails, since current image aquites lower palette modifications.*

Method B:
Create dummy image and load desired palette.
Paste image.
*Fails since Image looks granular, and does not retain original colors.

Method C:
Create dummy image and load desired palette.
Change Image-Mode to RGB
Paste image.
Change Image-Mode Color-Index (Local Perceptual) option
*Fails because first 16 index colors are replaced with new palette.



0
 
LVL 30

Accepted Solution

by:
weed earned 2000 total points
ID: 12058139
You dont have to use all 256 colors, just get rid of the ones you dont want.

In the Indexed Color window, select Adaptive, thatll get you a closest match, then hit "forced" to force the first 16 or so colors to whatever you want.
0
 
LVL 30

Author Comment

by:Axter
ID: 12058190
>>In the Indexed Color window, select Adaptive, thatll get you a closest match,
>>then hit "forced" to force the first 16 or so colors to whatever you want.

What do you mean, by hit force?
On my version of Photoshop, Forced is a combo selection field.

Will this work even if the first 16 colors are not on the current image?
0
 
LVL 30

Author Comment

by:Axter
ID: 12058282
>>In the Indexed Color window, select Adaptive, thatll get you a closest match, then
>>hit "forced" to force the first 16 or so colors to whatever you want.

I got it to work by selecting custom from the combo Forced field.
Then load target palette.

Seems to be a bug in Photoshop, because if I don't reselect the custom option, then I don't get the second window to load the palette.
0
 
LVL 30

Author Comment

by:Axter
ID: 12058283
Thanks
0
 
LVL 30

Expert Comment

by:weed
ID: 12058288
Forced is a menu in the Indexed Color options box. Use the Custom entry in the Forced menu. Yes, you can assign any colors you want to be forced, regardless of whether theyre in the current image or not.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When sharing photos, especially via e-mail, the large resolution images that most cameras take today make for extremely large file sizes. The time required to upload these files to forums, send in e-mails, post to blogs or even placi…
The Summer 2017 Scholarship Winners have been announced!
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question