Jump to content
You must now use your email address to sign in [click for more info] ×

Entering Macro Parameters as fractions


Recommended Posts

I have used equations to resize my images as described in this thread. I use the Parameter a to adjust the final image size to the desired maximum. However the parameters are constrained to lie between zero and one (inclusive). In this macro, zero gives a size of zero and one gives a size of 4000px. The parameter a is a multiplier for 4000 so that 0.2 gives a target of 800px.

I have found that it is much more convenient to enter a fraction in the parameter box so, instead of entering 0.2, I can enter 800/4000. All the user has to do is to remember the denominator should be 4000. The ability to enter fractions is documented for other parts of the user interface, but I thought it worth mentioning that it works here as well.

John

Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.