如何从 5-6-5 位图图像中提取调色板?
我正在尝试从原始 Photoshop 文件中使用 ImageConverter Plus 生成的 5-6-5(16 位)位图图像中提取调色板。我需要读出调色板并将其与我在其他地方的另一张图像的调色板进行比较。
是否有一款免费(或没有)软件可以做到这一点?我可以使用另一个软件读取 .pal 和 .act 格式的调色板文件,但我想首先从位图生成其中一个文件!
谢谢,
乔治
添加更多信息:
我从 Photoshop 中的 8 位 PNG 开始,它使用我已经创建的预定义调色板。其中最多有 256 种颜色,我将其保存为 PNG 文件。然后我在 ImageConverter Plus 中将其转换为 5-6-5 位图,它将缩放每种颜色的 RGB 值,因为在 8 位 PNG 中它们是根据 0-255 定义的,但显然在 5-6-5 中位图它们被定义在0-31、0-63、0-31。
我现在想做的是检查 5-6-5 位图的值,并基本上从中重新提取调色板。您无法在 Photoshop 中执行此操作,因为当您再次打开文件时,颜色会自动转换为 0-255 范围。所以说真的,我可以使用什么图像程序来查看新 BMP 中的 0-31 等值。
我应该解释一下,最终的图像不适合在电脑屏幕上显示,我很欣赏这个过程有点复杂,但事情就是这样!
I am trying to extract the palette from a 5-6-5 (16bit) bitmap image that I have produced using ImageConverter Plus from an original Photoshop file. I need to read out the palette and compare it to the palette I have elsewhere for another image.
Is there a piece of freeware (or not) software that can do this? I can read palette files in .pal and .act format with another piece of software, but I would like to generate one of these files from the bitmap in the first place!
Thanks,
George
To add further information:
I start with an 8-bit PNG in Photoshop which uses a pre-defined colour palette which I have already created. This has a maximum of 256 colours in it, and I save this out as a PNG file. I then convert this to a 5-6-5 bitmap in ImageConverter Plus which will scale the R G B values of each colour since in the 8-bit PNG they are defined in terms of 0-255, but obviously in the 5-6-5 bitmap they are defined in 0-31, 0-63, 0-31.
What I want to now do is inspect the values of the 5-6-5 bitmap and basically re-extract a colour palette from it. You can't do this in photoshop as when you open the file again the colours are automatically converted to the 0-255 range. So really, what image program can I use to look at the 0-31 etc... values in my new BMP.
I should explain that the final image is not for display on a PC screen and I appreciate the process is somewhat convulted but that is how it has to be!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那里没有调色板,有 65536 种颜色可能,但没有调色板。
因此,如果将其转换为 24 位图像,颜色将是相同的。
因此,如果您可以从 24 位图像中提取调色板,那么您就完成了:-)
There is no palette there, there are 65536 colors possible, but no palette.
So, if you convert it to 24-bit image, colors would be the same.
So if you can extract palette from 24-bit image, you are done :-)