• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

Hi all . . .

Participant ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

What if we set the pixel ratio? For example, 1000x1000 pixel is Blur 3 radius pixels. 2000x2000 pixel is blur 6 radius pixels. If it's 1500x1500 pixels, can you make scripts to add how much blur radius... Before clicking the scripts, I'll set the selection with rectangular marquee tools and how many pixels to set.

TOPICS
Windows

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 4 Correct answers

Community Expert , Aug 01, 2023 Aug 01, 2023

@Thiha31203570tbl0 – Is this related to your similar post below?

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/frequency-separation-action/m-p/13977484

 

If performing frequency separation, it is normally done on the entire canvas, not a selection. It can always be masked afterwards.

Votes

Translate

Translate
Community Expert , Aug 01, 2023 Aug 01, 2023

 

// 2023, use it at your own risk;
if (app.documents.length > 0) {
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    if (hasSelection() == true) {
        var theBounds = activeDocument.selection.bounds;
        var theWidth = theBounds[2] - theBounds[0];
        var theHeight = theBounds[3] - theBounds[1];
        var theValue = Math.max(theWidth, theHeight) * 0.003;
        gaussianBlur (theValue)
    };
    app.preferences.rulerUnits 
...

Votes

Translate

Translate
Community Expert , May 20, 2024 May 20, 2024
// 2024, use it at your own risk;
if (app.documents.length > 0) {
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    if (hasSelection() == true) {
        var theBounds = activeDocument.selection.bounds;
        var theWidth = theBounds[2] - theBounds[0];
        var theHeight = theBounds[3] - theBounds[1];
        var theValue = Math.max(theWidth, theHeight) * 0.003;
        surfaceBlur (theValue, 10)
    };
    app.preferences.rulerUnits
...

Votes

Translate

Translate
Community Expert , May 25, 2024 May 25, 2024

For one thing a function that takes three arguments should be fed three arguments. 

// 2024, use it at your own risk;
if (app.documents.length > 0) {
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
if (hasSelection() == true) {
var theBounds = activeDocument.selection.bounds;
var theWidth = theBounds[2] - theBounds[0];
var theHeight = theBounds[3] - theBounds[1];
var theValue = Math.max(theWidth, theHeight) * 0.021;
unsharpMask (120, theValue, 10)
...

Votes

Translate

Translate
Adobe
Community Expert ,
Oct 01, 2023 Oct 01, 2023

Copy link to clipboard

Copied

I am also puzzled as to why you need a script approach. The blur radius is chosen by image content, not pixel size, thereby choosing what is on the high frequency layer and what is on the low. A script could give a mathematical output based on image pixel size but can't make that judgement based on image content.

 

Dave

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 01, 2023 Oct 01, 2023

Copy link to clipboard

Copied

Hello Dear Mr.@Stephen Marsh @c.pfaffenbichler , Can you help me?  

The selection is for setting the blur ratio.

However, the effect of the Blur effect is not only to apply the effect within the selected area, but also to apply the effect to the entire image.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2023 Oct 01, 2023

Copy link to clipboard

Copied

Could you please post screenshots with the pertinent Panels (Toolbar, Layers, Options Bar, …) visible? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 01, 2023 Oct 01, 2023

Copy link to clipboard

Copied

Thank Sir , 12.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2023 Oct 01, 2023

Copy link to clipboard

Copied

Those are not the screenshots I asked for. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 01, 2023 Oct 01, 2023

Copy link to clipboard

Copied

Thank Mr. @c.pfaffenbichler @Stephen Marsh  

I want the blur effect to be applied to the whole image11.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines