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 I should be using here…
For example, if I wanted to resize an image to a width that is equal to 16 to the 3rd power:
Code: Select all
convert input.jpg -resize (16^3) output.jpg
I need this for passing a command line argument to a shell alias—resizing to $1^3, for example.
Thank you for any help!