Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I am trying to use imagemagick to adjust the brightness levels in a group of images that I want to fax out, The blackness of the print in the original image is very low so I was trying to increase it.
I was playing around in Paintshop Pro with the brightness levels and was able to improve the image. I was trying to do the same thing in imagemagick from the command line so that i can at some stage try and script this. But I was having some problems knowing what to pass on the command line
but with out any luck could some one please guide me on what i should try and do to increase the brightness of the image or have another method to improve the darkness of the print. Thanks for your help
fmw42 thank you very much for taking the time to post as well as to convert some sample images for me
I tried the level command but when faxing the whole image was turned black this would be down to how my provider I guess converts the images. I converted the image to TIF maybe I should have made it a PDF.
I am also trying -colorspace Gray to try and improve the image to see if that helps but if you have any other ideas please let me know.
Here is a copy of one of the images http://img64.imageshack.us/img64/9053/examplek.png (the real document is a pdf but had to paste it to a png file and remove some of the personal info) but you will get a understanding of the images that i am trying to work with.
When faxing the blacker the font the better. What happens at the moment is the words and numbers in the boxes become very hard to read when faxed. So I have been trying to apply some sort of mask to try and improve the blackness of the font.
Doing a -level 100x20% works pretty well it makes the fonts white and all the background black but as this document is to be faxed it wont work as it will take a hour to send the fax and also use up all of some ones black ink.
fmw42 again thank you I did not even think of putting the command in to one line sorry its my fault as I miss read one of your early comments.
I have been playing with some of the other commands and trying out a few other examples to try and learn a bit more about imaging and imagemagick.
One thing I have noticed is that the tif images that i am creating are very large in size.
Should I try and compress the tif image or do you think I should try and change the output size at the moment I saw one image at 2479x3508 that sounds pretty big to me as this document is meant to be faxed it does not need to be a very large size.
If the pixel size is too big, you can resize back down. The -density enlarges the image by about a factor of 4 (4*72dpi = 288 = about 300), so scale it back down.
Thanks again for the hints, I am trying to get a list of supported TIF formats from my provider as I know they also convert the tif on there side as well before it is sent so it might be a little bit more flexible
I was wanting to try the group3/group4 compression method but kept receiving this error
Bits/sample must be 1 for Group 3/4 encoding/decoding