LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-20-2009, 10:53 AM   #1
Tom Nichol
LQ Newbie
 
Registered: Jul 2006
Location: Fairview, TN
Distribution: mythbuntu 11.04
Posts: 17

Rep: Reputation: 0
Question Converting color TIFF files to black and white with ImageMagick--HOW??


Last week, I scanned some 36 pages of sheet music into my laptop, hoping to import them into Finale PrintMusic, which I also have running on my laptop under WINE. HOWEVER--I inadvertently misread the instructions in PrintMusic, and instead of saving the TIFF files as black and white, lineart, 300 DPI, one dot per pixel, I saved the TIFF files as COLOR!! Needless to say, PrintMusic refuses to touch the files. Can ImageMagick convert these files to black and white,and, if so, how do I go about doing it? I'm not used to doing things in Linux from the command line, so I can use all the help I can get!! Thanks in advance!
 
Old 07-20-2009, 11:35 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,488

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
Code:
convert input.tif -colorspace Gray output.tif
If you want to loop over the .tif files:
Code:
mkdir ./ouput
for file in *.tif
do
  convert $file -colorspace Gray ouput/$file
done
 
Old 07-20-2009, 03:31 PM   #3
Tom Nichol
LQ Newbie
 
Registered: Jul 2006
Location: Fairview, TN
Distribution: mythbuntu 11.04
Posts: 17

Original Poster
Rep: Reputation: 0
Question "colorspace" or "monochrome"?

Thanks for the reply--BUT--are you sure that option shouldn't be "-monochrome" instead of "-colorspace"? Also, do I need to cd to the directory the tif files are in first, or to the ImageMagick directory (wherever that may be!), or what? Thanks again, regardless!
 
Old 07-20-2009, 03:35 PM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,488

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
Well, you can try -monochrome at your pleasure. I tried it on my system but it does not work, resulting in a blank image. And yes, you have to change to the directory where the tif files are stored. for file in *.tif matches all .tif in the current directory. The resultin b/w images will be saved in directory ./ouput with the same name as the original.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
converting tiff to jpeg freebies Linux - Software 8 06-26-2013 10:17 PM
White color is grey on RADEON9200SE leonp Linux - Hardware 2 04-14-2005 02:51 AM
Video Is Black And White No Color Angsuman Linux - Software 6 06-14-2004 07:43 AM
user has color but superuser has only white - this should not be Bruce Hill Linux - Newbie 4 10-31-2003 07:55 PM
ImageMagick, change color Kocil Linux - Software 0 10-14-2003 10:04 PM


All times are GMT -5. The time now is 12:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration