LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2005, 05:59 AM   #1
James_dean
Member
 
Registered: Sep 2005
Posts: 41

Rep: Reputation: 15
JPEG and Monochrome


I know there are quality issues if you try to convert any image to jpeg that has less than 16 grey levels. But is it possible to make a monochrome jpeg?.
 
Old 11-09-2005, 10:56 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
It looks pretty crappy but seems to work...
convert -monochrome calvin.jpg mudd.jpg

More options with: convert --help
 
Old 11-09-2005, 11:22 PM   #3
James_dean
Member
 
Registered: Sep 2005
Posts: 41

Original Poster
Rep: Reputation: 15
The result i get is 8bits per pixel which is greyscale.......are u sure your output was 1bpp monochrome?
 
Old 11-09-2005, 11:38 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Yep, I guess it's grayscale.

identify -verbose mudd.jpg
mudd.jpg JPEG 640x480 PseudoClass 256c 60kb 0.040u 0:01
Image: mudd.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Geometry: 640x480
Class: PseudoClass
Type: Grayscale
Endianess: Undefined
Colorspace: Gray
Channel depth:
Gray: 8-bits
Channel statistics:
Gray:
Min: 0 (0)
Max: 255 (1)
Mean: 0.10625 (0.000416667)
Standard deviation: 4.25284 (0.0166778)


http://www.cit.gu.edu.au/~anthony/graphics/imagick6/
 
Old 11-10-2005, 04:05 AM   #5
James_dean
Member
 
Registered: Sep 2005
Posts: 41

Original Poster
Rep: Reputation: 15
You would not happen to know how i could set the channel depth in a jpeg image i see that image magick tool read the channel depth........
 
Old 11-10-2005, 08:49 AM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
No, sorry.
 
Old 11-10-2005, 06:12 PM   #7
James_dean
Member
 
Registered: Sep 2005
Posts: 41

Original Poster
Rep: Reputation: 15
No worries.....thanks for your replies.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jpeg? sonic04002 Linux - Newbie 3 11-02-2005 02:18 PM
I need a monochrome terminal Dewar Linux - General 5 03-18-2005 02:57 PM
monochrome xfig in cygwin DiagonalArg Linux - Newbie 1 03-19-2004 03:00 PM
gd won't see jpeg library pigmut Red Hat 0 03-05-2004 02:56 AM
Monochrome output when watching DVDs vasudevadas Linux - General 1 10-11-2003 01:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration