Page 1 of 1

Feature request : Oval and rectangular gradients

Posted: May 5th, 2025, 7:26 pm
by pierrelabreche
New capabilities for the Oval Gradient transformation:
  • Center the origin on the image
  • Ability to define the inner shape ( e.g. rectangle ) at a distance from the outer shape, to enable the creation of uniform gradient widths along all sides. That implies not preserving the aspect ratio. See image below showing undesirable wide and narrow gradient widths along the long and the short sides.
2025-05-05 PWP gradient width and center.jpg
2025-05-05 PWP gradient width and center.jpg (54.22 KiB) Viewed 164 times

Re: Feature request : Oval and rectangular gradients

Posted: May 6th, 2025, 6:32 am
by jsachs
This could only work for rectangles or circles -- for ellipses, the offset curve is not an ellipse and may not even be convex.

Re: Feature request : Oval and rectangular gradients

Posted: May 6th, 2025, 5:19 pm
by pierrelabreche
A capability for offset curves sounds interesting !

Re: Feature request : Oval and rectangular gradients

Posted: May 7th, 2025, 9:34 am
by jsachs
Unfortunately, the math is ugly.

Re: Feature request : Oval and rectangular gradients

Posted: May 7th, 2025, 4:08 pm
by pierrelabreche
Thanks for the continuum oval-rectangle oval gradient. However, as you pointed out it cannot provide constant width gradient along the shape.
I tried to obtain the desired effect using a combination of Frame, Gaussian blur, Crop transformations, but if is a convoluted convoluted solution.
Is there a simpler way to get the desired effect ?
2025-05-07 gradient along rectangle - sort of v1.jpg
2025-05-07 gradient along rectangle - sort of v1.jpg (97.02 KiB) Viewed 118 times
Script is attached

Re: Feature request : Oval and rectangular gradients

Posted: May 7th, 2025, 6:07 pm
by jsachs
The Mask Feather tool does this, although in a limited fashion since you have to start with a solid rectangle or ellipse and there is no Color Line control to vary the gradient.

So does Add Border if you use the Softness slider, which looks like it does exactly what you are trying to do in the sample image.

Re: Feature request : Oval and rectangular gradients

Posted: May 8th, 2025, 12:01 pm
by pierrelabreche
Thanks for the Add border suggestion, I had not thought about it.