Simple (?) colour reduction problem
Posted: 2007-06-19T04:57:02-07:00
Hi,
I'm totally new to ImageMagick and the first thing I'm trying to do is to convert a photograph (JPG) to a Windows Bitmap for use on an old Win 3.11 computer. This computer can only handle 256 colours, so I also need to reduce the number of colours in the picture to get a good result (and a smaller file).
I think the best way to describe the problem is to tell you everything that I've tried so far. I started out with a fairly simple photo-editing program, ArcSoft PhotoStudio, that doesn't seem to have a colour reduction feature. The BMP file it makes takes ages to load on the old computer, and looks really bad.
The next step was to try out ImageMagick. From the command line, I used the following:
convert head.jpg -colors 256 head.bmp
But this file is unopenable by Windows Paintbrush in Windows 3.11. I used identify to compare the two files, and basically the only difference except the number of colours was the "class" type: "PseudoClass" files do not open in Win 3.11. Adding the option "-type TrueColor" enables this old version of Paint to be able to read the file. However, this option also causes the file to grow in size and it looks just as bad as the non-reduced file converted using PhotoStudio.
I'm sorry, I'm definitely not familiar with digital image editing, so if anyone could give me a hand I'd really appreciate it. Does the TrueColor option reverse the colour reduction somehow? "identify"ing the file does say that it only uses 256 colours though.
I don't know if this helps, but I had access to Paint Shop Pro for this task when I was still in school, and I remember that you could press CTRL+SHIFT+3 to reduce the number of colours to 256. This produced a file that worked perfectly with my old computer. Maybe IM has a feature similar to what PSP uses, I don't know.
Thanks for reading all of this. Hope you can help me..
I'm totally new to ImageMagick and the first thing I'm trying to do is to convert a photograph (JPG) to a Windows Bitmap for use on an old Win 3.11 computer. This computer can only handle 256 colours, so I also need to reduce the number of colours in the picture to get a good result (and a smaller file).
I think the best way to describe the problem is to tell you everything that I've tried so far. I started out with a fairly simple photo-editing program, ArcSoft PhotoStudio, that doesn't seem to have a colour reduction feature. The BMP file it makes takes ages to load on the old computer, and looks really bad.
The next step was to try out ImageMagick. From the command line, I used the following:
convert head.jpg -colors 256 head.bmp
But this file is unopenable by Windows Paintbrush in Windows 3.11. I used identify to compare the two files, and basically the only difference except the number of colours was the "class" type: "PseudoClass" files do not open in Win 3.11. Adding the option "-type TrueColor" enables this old version of Paint to be able to read the file. However, this option also causes the file to grow in size and it looks just as bad as the non-reduced file converted using PhotoStudio.
I'm sorry, I'm definitely not familiar with digital image editing, so if anyone could give me a hand I'd really appreciate it. Does the TrueColor option reverse the colour reduction somehow? "identify"ing the file does say that it only uses 256 colours though.
I don't know if this helps, but I had access to Paint Shop Pro for this task when I was still in school, and I remember that you could press CTRL+SHIFT+3 to reduce the number of colours to 256. This produced a file that worked perfectly with my old computer. Maybe IM has a feature similar to what PSP uses, I don't know.
Thanks for reading all of this. Hope you can help me..