473,386 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Changing Color depth of a jpeg image

is there a way to reduce or modify the color depth of a jpeg image, i
currently need to programatically change the color depth of a jpeg image
from 24bits to 8bits. any help would be appreciated

May 26 '06 #1
2 4147
The color depth of a JPEG image is 8 bits per color channel. There is no
JPEG format (except grayscale) with a color depth of 8 bits per pixel.

Onwuka Emeka wrote:
is there a way to reduce or modify the color depth of a jpeg image, i
currently need to programatically change the color depth of a jpeg image
from 24bits to 8bits. any help would be appreciated

May 27 '06 #2
I found a solution. http://freeimage.sourceforge.net/. there is a nice
though incomplete .NET wrapper for it, it has a method that converted the
24bit to 8bit, and yeah its grayscale :).

I updated the wrapper and would be posting it to my blog soon.

Thanks.

"Göran Andersson" <gu***@guffa.com> wrote in message
news:OT**************@TK2MSFTNGP05.phx.gbl...
The color depth of a JPEG image is 8 bits per color channel. There is no
JPEG format (except grayscale) with a color depth of 8 bits per pixel.

Onwuka Emeka wrote:
is there a way to reduce or modify the color depth of a jpeg image, i
currently need to programatically change the color depth of a jpeg image
from 24bits to 8bits. any help would be appreciated

May 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JJM | last post by:
Can anyone please help me with this I'm a total newbie and just getting started in JS. I have a page where I would like to display a picture and a short textual explanation of the picture. I...
1
by: Sean | last post by:
i am writing a class that visual demonstrates the result of changing the quality of a jpeg. the intention is to do this by saving the file and a selected quality, then reloading it to get an idea of...
1
by: Shawn | last post by:
Hi. I haven't been able to get an answer in the vb newsgroup on the topic, so I'll try here. I'm converting .tif images into other image formats like ..jpeg and .gif and I need to know how I can...
7
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
1
by: Onwuka Emeka | last post by:
is there a way to reduce or modify the color depth of a jpeg image, i currently need to programatically change the color depth of a jpeg image from 24bits to 8bits. any help would be appreciated
9
by: kombu67 | last post by:
I'm reading a series of images from a MS SQL table and saving them to directory. These are staff ID pictures from our security card app. Once I've extracted the ID photo from the security app to...
1
by: markurxn | last post by:
I need a solution to automatically change the DPI of uploaded photos from 300 to 72. I've coded this bit of script to read the 14th through 18th bit of binary data of a JPEG and update the DPI. The...
5
by: RobT | last post by:
I'll admit, that I don't do a lot of GDI+ programming and I'm sure this is an easy answer. I'm trying to draw a couple of shapes in a web site. I can display them just fine, but on some of the...
3
dlite922
by: dlite922 | last post by:
Hey guys, I have limited access to a server and would be a pain to install and configure an image library such as GD or Imagick with PHP. Is there any other progmatically some-what reliable...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.