LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-14-2008, 11:00 PM   #1
btbx
Member
 
Registered: Jun 2007
Posts: 67

Rep: Reputation: 15
Question Batch Greyscale Image Converter to Full Color 24 bit JPEG?


I want to convert several thousands greyscale (black and white/monochrome) images in PBM, PNM, TIFF etc to color JPEG / JPG (24 bit) format.

Is there any program / script for batch conversion of image?

I try with convert (imageMagick) but the result are 8 bit Greyscale JPEG images.

How to solve this problem in Linux?
Thank you.
 
Old 04-14-2008, 11:25 PM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Can it be done? There is no relation between a greyscale and color information, so how can a program possibly do it?

Same for you when you look at a certain B/W photo. Do you know what is blue, red, grey etc? You might see grass and know it's green but it might also have been yellowish when the photo was taken in a dry period.
 
Old 04-15-2008, 05:32 AM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I assume you want to keep the B/W pictures in gray, but convert the FORMAT to 24-bit JPG. If you want convert gray to lively colors, please refer to WS's answer.

There are many options in ImageMagick, with a description which not always totally clear. I would go for -depth 8 and -color RGB

BTW... some old movies in B/W have been converted to color. They must have started with coloring one picture in a scene, but then what? And did they start the coloring again for each new scene? And the zillions of images in a movie were colored by a computer?

jlinkels
 
  


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
Pentax .PEF RAW to JPEG batch conversion utility needed Tom Brown Linux - Software 4 12-27-2010 07:36 PM
Batch bmp -> jpg converter? xushi Programming 10 01-31-2009 01:45 PM
batch-converting PS or PDF to Jpeg, cropping mechagojira Linux - Software 1 08-21-2007 10:33 AM
Can't get out of 24 bit color want (32 bit) also can't go to 1280x1024, nVidia? mr_coffee Linux - Hardware 3 01-19-2006 06:06 PM
GIMP - 16 bit/color (48 bit/pixel) Maxxum9 Linux - Software 1 01-03-2005 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:09 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