Feature request : Oval and rectangular gradients

Moderator: jsachs

Post Reply
pierrelabreche
Posts: 669
Joined: January 29th, 2019, 11:47 pm
What is the make/model of your primary camera?: Nikon Z8

Feature request : Oval and rectangular gradients

Post 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 162 times
jsachs
Posts: 4652
Joined: January 22nd, 2009, 11:03 pm

Re: Feature request : Oval and rectangular gradients

Post 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.
Jonathan Sachs
Digital Light & Color
pierrelabreche
Posts: 669
Joined: January 29th, 2019, 11:47 pm
What is the make/model of your primary camera?: Nikon Z8

Re: Feature request : Oval and rectangular gradients

Post by pierrelabreche »

A capability for offset curves sounds interesting !
jsachs
Posts: 4652
Joined: January 22nd, 2009, 11:03 pm

Re: Feature request : Oval and rectangular gradients

Post by jsachs »

Unfortunately, the math is ugly.
Jonathan Sachs
Digital Light & Color
pierrelabreche
Posts: 669
Joined: January 29th, 2019, 11:47 pm
What is the make/model of your primary camera?: Nikon Z8

Re: Feature request : Oval and rectangular gradients

Post 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 116 times
Script is attached
Attachments
0Z8_4065,4068,4072,4074_stitch v2.jpg.script
(8.88 KiB) Downloaded 1 time
jsachs
Posts: 4652
Joined: January 22nd, 2009, 11:03 pm

Re: Feature request : Oval and rectangular gradients

Post 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.
Jonathan Sachs
Digital Light & Color
pierrelabreche
Posts: 669
Joined: January 29th, 2019, 11:47 pm
What is the make/model of your primary camera?: Nikon Z8

Re: Feature request : Oval and rectangular gradients

Post by pierrelabreche »

Thanks for the Add border suggestion, I had not thought about it.
Post Reply