Search found 9 matches

by WorldOfDepth
2019-09-24T22:56:24-07:00
Forum: Users
Topic: Faster alternative to FX with color channels?
Replies: 4
Views: 4716

Re: Faster alternative to FX with color channels?

Thank you, fmw42 and snibgo, that was exactly what I was looking for, and worked speedily like a charm! ⭐️
by WorldOfDepth
2019-09-20T14:42:16-07:00
Forum: Users
Topic: Faster alternative to FX with color channels?
Replies: 4
Views: 4716

Faster alternative to FX with color channels?

Hi All: a quick and maybe somewhat newbie question (if so, sorry) for you: I'm trying to implement the Dubois method of making color anaglyphs. I've been able to do it using multiple FX commands as follows: convert right.jpg left.jpg -channel r -fx '+u.r*.456 + u.g*.5 + u.b*.176 - v.r*.043 - v.g*.08...
by WorldOfDepth
2019-08-14T12:11:00-07:00
Forum: Users
Topic: Using mathematical operators in commands?
Replies: 14
Views: 5831

Re: Using mathematical operators in commands?

Fmw42, I'm using the utility program Terminal in OSX Yosemite. The window is labeled bash. I believe it's Unix.

The %[fx:20^2] appears to works within a 'magick' command regardless of whether or not it's enclosed in double quotes.
by WorldOfDepth
2019-08-14T11:01:19-07:00
Forum: Users
Topic: Using mathematical operators in commands?
Replies: 14
Views: 5831

Re: Using mathematical operators in commands?

Snibgo, wow, I overlooked that, and indeed it works with magick, and even without double quotes! I'm just so used to convert and composite as my defaults. Thanks so much, and thanks fmw42 again for the option via a variable.
by WorldOfDepth
2019-08-14T10:46:46-07:00
Forum: Users
Topic: Using mathematical operators in commands?
Replies: 14
Views: 5831

Re: Using mathematical operators in commands?

Thanks fmw42! Your code for IM6 works for me if I omit the usual backslash escapes for parentheses that I have to use within IM commands. The IM7 code won't work despite my version being 7.0.8-3.
by WorldOfDepth
2019-08-14T09:52:41-07:00
Forum: Users
Topic: Using mathematical operators in commands?
Replies: 14
Views: 5831

Re: Using mathematical operators in commands?

I did try that, but it returns the exact same error as before (the double quotes are not regurgitated in the error message).

Also don't work: single quotes; escaping the brackets and/or caret with backslashes
by WorldOfDepth
2019-08-14T09:40:58-07:00
Forum: Users
Topic: Using mathematical operators in commands?
Replies: 14
Views: 5831

Re: Using mathematical operators in commands?

Code: Select all

convert input.jpg -resize %[fx:20^2] output.jpg
returns: "convert: invalid argument for option '-resize': %[fx:20^2] @ error/convert.c/ConvertImageCommand/2609"

Using double carets or quotes around it returns a similar error.
by WorldOfDepth
2019-08-14T09:19:16-07:00
Forum: Users
Topic: Using mathematical operators in commands?
Replies: 14
Views: 5831

Re: Using mathematical operators in commands?

Thank you snibgo and fmw42! Sorry for not including it—I'm using version 7.0.8-3 via Mac Terminal. I think the fx expression plus percent escape is what I want, but IM returns an "invalid argument" when I try %[fx:20^2], %[fx:20^^2], "%[fx:20^2]", "%[fx:20^^2]", or %\[fx:20^2\]… How should this be c...
by WorldOfDepth
2019-08-14T01:44:22-07:00
Forum: Users
Topic: Using mathematical operators in commands?
Replies: 14
Views: 5831

Using mathematical operators in commands?

Hi, sorry, this may be a simple question, but I cannot find the answer after lots of searching! Is it possible to use a mathematical expression that would be evaluated and replaced by a number within a command? I see all the math operators available for the FX operator, but I don’t think that’s what...