Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-10-2005, 07:07 AM   #1
Member (7 bit)
 
shaticus's Avatar
 
Join Date: May 2004
Posts: 103
Sorting Program

I am trying to write a program that will be able to tell what colors are in a file and sort it to an appropiate folder. For example if I give it a black and white image I would like the program to recognize the file is black and white and put it in to a folder. Or I could give it a color file and it would put it into a different folder.

How could I go about telling what colors are in the file? I tried looking through a file with a hex editor but am having a little trouble figuring out where the format data stops and the contents.

ANy help is greatly appreciated,
Shaticus
shaticus is offline   Reply With Quote
Old 06-10-2005, 10:04 AM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
What language and what kind of file?
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 06-10-2005, 02:33 PM   #3
Member (7 bit)
 
shaticus's Avatar
 
Join Date: May 2004
Posts: 103
I will write it in c or c++. As for file type it should be able to handle common image formats like jpeg and quark express files.
shaticus is offline   Reply With Quote
Old 06-10-2005, 09:26 PM   #4
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
So you're saying that you want this program to determine the dominant color of a jpeg or quark express file and sort them? I think you're asking a bit much.

You may, however, be able to find something with google.
Force Flow is offline   Reply With Quote
Old 06-11-2005, 06:00 AM   #5
Member (7 bit)
 
shaticus's Avatar
 
Join Date: May 2004
Posts: 103
OK thanks, I knew it would be difficult to figure out.
If I can get it working I will be sure to post the code.
shaticus is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:51 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2