Search found 37 matches

by aporthog
2018-02-26T16:31:34-07:00
Forum: PerlMagick
Topic: Get deskew angle out after operation
Replies: 0
Views: 51042

Get deskew angle out after operation

I'm trying to rewrite an application that solely used command-line calls to one using PerlMagick (primarily to avoid the overhead of multiple reads of a single file). I'm stumped on how to get the deskew angle back after a call to Deskew() like I could on the command line: magick convert skewed_upri...
by aporthog
2015-10-01T08:27:08-07:00
Forum: Users
Topic: How much memory?
Replies: 2
Views: 4513

How much memory?

If I could tack on my own question to this topic - I'm setting up a Linux Redhat Virtual machine dedicated to image processing with IM and I'm wondering how much memory I should ask for. I don't want to ask for an outrageous amount but since I'm not very experienced with Linux I'm not sure what a go...
by aporthog
2015-08-07T08:40:24-07:00
Forum: Users
Topic: Avoiding multiple reads with txt:- and clone?
Replies: 10
Views: 12309

Re: Avoiding multiple reads with txt:- and clone?

Hey you're right. Those should be plusses. That was the problem. I can almost see why there were 32 blocks of text now. What a stupid mistake. I've done cropping correctly in IM a zillion times. Thanks for spotting it. It works now and I get just 4 blocks of text and it's pretty speedy. I also see t...
by aporthog
2015-08-06T14:51:12-07:00
Forum: Users
Topic: Avoiding multiple reads with txt:- and clone?
Replies: 10
Views: 12309

Re: Avoiding multiple reads with txt:- and clone?

You caught it before I had a chance to correct it! I made a copy and paste error and the actual command I used is above.
by aporthog
2015-08-06T14:44:14-07:00
Forum: Users
Topic: Avoiding multiple reads with txt:- and clone?
Replies: 10
Views: 12309

Re: Avoiding multiple reads with txt:- and clone?

I take it back that it's working correctly. Looking at the output I just noticed I'm getting 32 blocks of text instead of the 4 blocks I was expecting. When I just do this: convert -type Grayscale "file.CR2[562x374]" ( -clone 0 -rotate 270 -level 10% -normalize ) ( -clone 1 -resize 1x562! ...
by aporthog
2015-08-06T13:52:11-07:00
Forum: Users
Topic: Avoiding multiple reads with txt:- and clone?
Replies: 10
Views: 12309

Re: Avoiding multiple reads with txt:- and clone?

OK, I assembled my final command which lets me look at average brightness at different parts of the image. I was reading a bit more on IM file handling and basic usage and added -type Grayscale and a resize appended to the filename in brackets to maybe speed things up. It works perfectly but it's ve...
by aporthog
2015-08-06T12:10:05-07:00
Forum: Users
Topic: Avoiding multiple reads with txt:- and clone?
Replies: 10
Views: 12309

Re: Avoiding multiple reads with txt:- and clone?

Sorry for not being clear. This works exactly perfectly. I needed the +write and the NULL: Also you're right: I wanted to perform a different operation on the original image, not take the output of the first operation as the input of the second (though in my example I just did the same operation for...
by aporthog
2015-08-06T10:55:20-07:00
Forum: Users
Topic: Avoiding multiple reads with txt:- and clone?
Replies: 10
Views: 12309

Avoiding multiple reads with txt:- and clone?

I'm trying to do some operations on CR2 files and then read the results with txt:- Previously I just did these commands one by one, rereading the CR2 file each time. I was wondering if I can avoid the multiple reads and somehow repeat the txt:-, perhaps in a clone operation. (This is all on the comm...
by aporthog
2014-10-20T15:21:46-07:00
Forum: Developers
Topic: Can't install rpm on RedHat
Replies: 0
Views: 5173

Can't install rpm on RedHat

I've seen a few postings on this topic but so far haven't seen any answers. My systems is Red Hat Enterprise Linux Server release 6.5 (Santiago) I've followed the instructions here: http://www.imagemagick.org/Usage/api/#building yum install ImageMagick-devel works but gives me Version: ImageMagick 6...
by aporthog
2014-06-04T08:42:04-07:00
Forum: Users
Topic: Getting info:- out of -trim and deskew
Replies: 1
Views: 5690

Getting info:- out of -trim and deskew

I want to get the final geometry of an image that has been trimmed and deskewed for use in another program but I can't figure out how to do it. I read this but don't understand the output I am seeing: http://www.imagemagick.org/Usage/crop/#trim This documentation tells how to get information out of ...
by aporthog
2014-04-18T08:01:02-07:00
Forum: Users
Topic: Conversion of CR2 to tif significantly worse than Photoshop
Replies: 5
Views: 9849

Re: Conversion of CR2 to tif significantly worse than Photos

Thanks all for the pointers. I read up some more on dcraw and found some other threads on raw files and IM and it's clear to me now. I have been applying a CLUT to my images as well as other enhancements such as sharpening with good results. Recently a colleague wanted to work with the unenhanced ve...
by aporthog
2014-04-15T12:18:59-07:00
Forum: Users
Topic: Conversion of CR2 to tif significantly worse than Photoshop
Replies: 5
Views: 9849

Conversion of CR2 to tif significantly worse than Photoshop

Version: ImageMagick 6.8.6-10 2013-09-17 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC Features: DPC OpenMP Delegates: bzlib freetype jbig jng jp2 jpeg lcms png ps png tiff webp x xml zlib OS; Windows 7 When I do a straightforward conversion of a CR2 file t...
by aporthog
2014-02-18T12:05:06-07:00
Forum: Users
Topic: Automatically correcting trapezoidal distortion
Replies: 2
Views: 5890

Re: Automatically correcting trapezoidal distortion

I will try and sort through that. We're on Windows and Solaris but the Solaris IM is too old and we haven't been able to compile a new version. I'll try and find the salient points and convert them to perl and add them to my module. I'm trying to understand the idea of finding the peaks and the whol...
by aporthog
2014-02-18T10:52:20-07:00
Forum: Users
Topic: Automatically correcting trapezoidal distortion
Replies: 2
Views: 5890

Automatically correcting trapezoidal distortion

I am about to write a program to automatically detect and correct trapezoidal distortion of book pages and thought I'd run it by you guys to see if you had any suggestions to make the task easier or faster. I've had good luck in a test program I made using certain assumptions that i can't make for m...
by aporthog
2014-02-11T13:07:23-07:00
Forum: Users
Topic: Can this be combined into one command?
Replies: 3
Views: 5225

Re: Can this be combined into one command?

Hey that works. And I understand it too since I've been reading up on parentheses. Well, mostly. I understand the -clones make in-memory copies of specific files from the list (which in this case has only a single element, bitonal.tif). I'm not sure what the -delete does here. Why do we need to dele...