Search found 37 matches

by aporthog
2013-02-12T08:46:18-07:00
Forum: Users
Topic: Getting colors from multiple regions of an image (perl)
Replies: 10
Views: 8532

Getting colors from multiple regions of an image (perl)

I'm trying to clean up and center some bitonal page images from books. I've done this with a perl script that divides the page into a grid and looks for the percentage of white in each region. So the page essentially looks like this, except bigger: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1...
by aporthog
2012-10-11T10:57:27-07:00
Forum: Users
Topic: Cropping a CR2 file using the XMP profile
Replies: 4
Views: 5437

Re: Cropping a CR2 file using the XMP profile

Thanks. I'm using IM6. I went ahead and wrote a script which was pretty easy after all. Good point about removing the profile values after cropping.
by aporthog
2012-10-04T08:27:13-07:00
Forum: Users
Topic: Cropping a CR2 file using the XMP profile
Replies: 4
Views: 5437

Cropping a CR2 file using the XMP profile

I was all set to write a custom cropping script using the crs:Crop settings in the XML profile by calculating those values as percentages of the original image dimensions. Then I noticed IM can read the profile using the -profile switch with an xmp: prefix on the profile filename. I tried running th...
by aporthog
2012-05-30T11:28:54-07:00
Forum: PerlMagick
Topic: Cannot for the life of me get annotate to do anything
Replies: 6
Views: 37926

Re: Cannot for the life of me get annotate to do anything

OK, what I think is happening is the tiff's palette is screwing things up. I increased the color depth to 16 million colors in IrfanView and saved it as a test file. Working on that test file I got annotate to work. It also works when converting the file to grayscale or bitonal first BTW. Could it b...
by aporthog
2012-05-30T09:47:49-07:00
Forum: PerlMagick
Topic: Cannot for the life of me get annotate to do anything
Replies: 6
Views: 37926

Re: Cannot for the life of me get annotate to do anything

# convert L1522.tif -background White label:'Faerie Dragon' +swap -gravity Center -append crop.tif # convert L1522.tif -gravity North -background White label:"Faerie Dragon" crop.tif # convert L1522.tif -annotate +5+5 'Something' crop.tif # convert L8320.tif -annotate 0 'something' -fill black crop...
by aporthog
2012-05-30T09:21:16-07:00
Forum: PerlMagick
Topic: Crop and not change DPI
Replies: 3
Views: 12888

Re: Crop and not change DPI

I had this issue generating gif images. Any other format, jpeg, etc., should work fine.
by aporthog
2012-05-30T08:47:37-07:00
Forum: PerlMagick
Topic: Cannot for the life of me get annotate to do anything
Replies: 6
Views: 37926

Cannot for the life of me get annotate to do anything

I've been working for two days to try to add some text to an image and nothing I try works. I started on Solaris simply using 'convert' to try and do it. In most cases the image is created fine but never with any text. Here are some of the things I tried: # convert L1522.tif -background White label:...