LinuxQuestions.org
Help answer threads with 0 replies.
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 05-04-2006, 10:37 AM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Imagemagick convert yields blank image


Hi all,

I am sure I am the only one in the world who uses Imagemagick's convert command, and if not, I am sure I am the only one with this problem.

But maybe there is ONE single individual who ran into the same problem and can help me.

I use convert to enhance the levels on an image. Generally to increase contrast so the picture becomes more black&white instead of gray.

When I use
Code:
convert -level 12%,78%,0.7 in.pnm out.pnm
it works fine and as expected.

However, when I do:
Code:
convert -level 30,200,0.7 in.pnm out.pnm
it yields a blank (white) image.

There should be no difference between the two parameter sets. When no percent sign is added, it uses absolute values for black_point and white_point. When a percent sign is added, it means convert uses a percentage of the full scale value.

Does anyone see what I do wrong?

Version: ImageMagick 6.0.6 11/29/04 Q16 http://www.imagemagick.org

jlinkels
 
Old 05-04-2006, 01:05 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Better quote the % signs, in case your shell eats them.

That's all I got!
 
Old 05-04-2006, 01:57 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Original Poster
Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Thanks ataraxia, but it is the string without the percents I have a problem with.

I agree with you that I should have quoted the percented string though.

jlinkels
 
Old 05-05-2006, 07:10 AM   #4
Spudley
Member
 
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Rep: Reputation: 32
Have you tried adjusting the levels a bit, see what happens? I can see you're trying to set the same values (12% -> 30 and 78% -> 200) but what if you change the 30 to, say, 20 or 40? Does it still come out blank? How about 50 or 60?

Can't really be that much more help at the moment, I'm afraid. I only use imagemagick fairly rarely, and I've never had a need to play with the level function. But I'd be interested to hear how it goes.

All the best.
 
Old 05-05-2006, 08:41 AM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Original Poster
Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Yes, I did.

Even -level 0,255,1 gives a blank picture.

jlinkels
 
  


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
ImageMagick - how to convert green pixels to red? BrianK Linux - General 3 03-13-2017 07:39 AM
ImageMagick-Convert, resize width, keep aspect cadj Linux - Software 2 06-18-2010 05:10 PM
imagemagick or pcdtoppm script to convert pcd to jpeg? jst1 Linux - Software 1 02-01-2006 05:26 PM
Using ImageMagick Convert RGB -> indexed colors paulsm4 Programming 0 01-17-2006 04:06 PM
Logging Off KDE or Gnome Yields Blank Screen philipogletree Debian 1 01-06-2006 04:31 PM

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

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