Search found 37 matches

by aporthog
2014-02-11T08:52:54-07:00
Forum: Users
Topic: Can this be combined into one command?
Replies: 3
Views: 5277

Can this be combined into one command?

I'm taking portions of a single image, resizing them and combining them into a new composite image. Right now I'm creating temporary files and I think that's causing me some problems. I'm getting sporadic, unreproduceable errors like "convert.exe: LZWDecode: Strip 0 not terminated with EOI code...
by aporthog
2014-01-10T17:07:16-07:00
Forum: Users
Topic: Adjusting colors to match calibrated sample
Replies: 5
Views: 6414

Re: Adjusting colors to match calibrated sample

Appending the clut, adjusting the image in PS, then cropping it back out again worked like a charm! Thanks everyone.
by aporthog
2014-01-10T15:09:44-07:00
Forum: Users
Topic: Adjusting colors to match calibrated sample
Replies: 5
Views: 6414

Re: Adjusting colors to match calibrated sample

Thanks, I looked up Hald CLUT in the IM documentation and seems to be exactly what I want. I think creating a CLUT from the 18 colors I have and interpolating the rest is a task beyond me. What should work is doing the adjustment in Photoshop and generating a CLUT from that. I assume Photoshop can't...
by aporthog
2014-01-10T13:14:37-07:00
Forum: Users
Topic: Adjusting colors to match calibrated sample
Replies: 5
Views: 6414

Adjusting colors to match calibrated sample

I'm trying to automatically adjust color images taken with two bookscanner cameras to match, more or less, the colors of the same page as scanned by a calibrated flat bed scanner. Here are the two images (Full size tiff versions are in http://ucblibrary4.berkeley.edu/~apollock/imagemagick/colors ): ...
by aporthog
2013-07-10T10:13:07-07:00
Forum: Users
Topic: Filling gaps in vertical edges, removing notches, etc.
Replies: 1
Views: 2598

Filling gaps in vertical edges, removing notches, etc.

I'm trying to "neaten" vertical and horizontal edges for bitonal scanned text. I'm sort of playing around, not sure if it will amount to anything. Sometimes we have to do some heavy processing of bad scans that "damages" the text and maybe I can use what I learn for that. Anyway,...
by aporthog
2013-06-18T13:06:05-07:00
Forum: Users
Topic: cropping document with variable background
Replies: 4
Views: 3931

Re: cropping document with variable background

You can play around with something like this:

convert 0M5Hiq1.jpg -normalize -fuzz 50% -fill black -opaque red -fill black -opaque brown out.jpg

Arvin
by aporthog
2013-04-18T14:08:37-07:00
Forum: Users
Topic: Eliminating blue
Replies: 2
Views: 3724

Re: Eliminating blue

Thanks, that seems to do the trick. I had tried just that exact thing some time ago but it had damaged the text too much and I gave it up. But combining it with some other new processing techniques I've learned I'm able to restore the damaged text and this time it seems to work.
by aporthog
2013-04-18T13:04:56-07:00
Forum: Users
Topic: Eliminating blue
Replies: 2
Views: 3724

Eliminating blue

I'm experimenting with seeing if I can remove blue ink underlining from black text on white pages. I've been reading up on all of the color processing options available in IM but I'm afraid it's mostly above my head. The pages will ultimately end up as bitonal so preserving the colors on the page is...
by aporthog
2013-02-26T08:00:48-07:00
Forum: Users
Topic: Group 4 compression and pixel aspect ratio
Replies: 1
Views: 3486

Re: Group 4 compression and pixel aspect ratio

I did a few more tests. I also took a tiff I had saved in Photoshop as LZW compressed and did a few manipulations and saved as Group4 in ImageMagick but this time I did not get the Photoshop warning about pixel aspect ratio. So far it happens only when I start with the original camera raw format. I ...
by aporthog
2013-02-26T05:53:29-07:00
Forum: Users
Topic: Group 4 compression and pixel aspect ratio
Replies: 1
Views: 3486

Group 4 compression and pixel aspect ratio

Our photographer is complaining that whenever he tries and opens my IM tiffs in Photoshop it pops up a warning about pixel aspect ratio correction. I hadn't noticed this before because I don't use Photoshop. So I did some experimenting with my command lines and found the last step -compress Group4 i...
by aporthog
2013-02-15T13:24:20-07:00
Forum: Users
Topic: mogrify -splice?
Replies: 0
Views: 6797

mogrify -splice?

-splice is listed as an option to mogrify here: http://www.imagemagick.org/script/mogrify.php

But I get an error when I try to use it:

mogrify -background white -splice 161x0 +repage image.tif
mogrify.exe: unrecognized option `-splice' @ error/mogrify.c/MogrifyImageCommand/5848.
by aporthog
2013-02-12T16:47:01-07:00
Forum: Users
Topic: Getting colors from multiple regions of an image (perl)
Replies: 10
Views: 11029

Re: Getting colors from multiple regions of an image (perl)

Ah yes, I do like that. The other output gave me automatic 2-d array subscripts which are handy, but I think I prefer this output.
by aporthog
2013-02-12T12:16:06-07:00
Forum: Users
Topic: Getting colors from multiple regions of an image (perl)
Replies: 10
Views: 11029

Re: Getting colors from multiple regions of an image (perl)

I was getting inconsistent results when I tried it in one command so I just tried two instead. Also I wanted to open the temp files and have a look at them. But I think I've got it now. In fact, without the intermediate bmp the results are clearer: convert -type Grayscale -resize 100x30! image.tif -...
by aporthog
2013-02-12T11:39:02-07:00
Forum: Users
Topic: Getting colors from multiple regions of an image (perl)
Replies: 10
Views: 11029

Re: Getting colors from multiple regions of an image (perl)

Hey! I think that will work. convert -type Grayscale -resize 100x20! image.tif temp.bmp Then read the pixels using: convert temp.bmp -scale 2x2\! txt:- I'm not at all familiar with IM's formatting options. Is there an easy way output the format as a gray value between 0 and 255? These are the types ...
by aporthog
2013-02-12T09:30:21-07:00
Forum: Users
Topic: Getting colors from multiple regions of an image (perl)
Replies: 10
Views: 11029

Re: Getting colors from multiple regions of an image (perl)

I will experiment with that but I'm not sure it would work. Normal values for a region with text are between about 86% and 94% white for the region sizes I'm using now, so the mean would always come out to white for every pixel. But perhaps I should convert the bitonal image to grayscale or color fi...