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

Duplicate and fit

Advocate ,
Aug 22, 2017 Aug 22, 2017

Copy link to clipboard

Copied

I have this need

I would duplicate the document in use

Resize to 1920px

Return the document to the original

And adapt it to the original document size

Without having too much loss of quality.

TOPICS
Actions and scripting

Views

2.5K

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 1 Correct answer

Engaged , Aug 22, 2017 Aug 22, 2017

Hi

Now, Try this code..

var strtRulerUnits = app.preferences.rulerUnits;

var strtTypeUnits = app.preferences.typeUnits;

app.preferences.rulerUnits = Units.PIXELS;

app.preferences.typeUnits = TypeUnits.PIXELS

cTID = function(s) {return app.charIDToTypeID(s);};

sTID = function(s) {return app.stringIDToTypeID(s);};

if(documents.length>0) main();

function  main(){

    var docRef = app.activeDocument;  

    var docname=activeDocument.name;

    var ImgW=docRef.width.value

    var ImgH=docRef.height.value  

    va

...

Votes

Translate

Translate
Adobe
Advocate ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

I tried to do it on the original image

But you lose too much time

Then I tried it with resized image and much faster

So the work I have in mind and this

Duplicate in a new document

reduce

To do the work on the masks

Bring the document to the original

Fit resized photos to the original.

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 ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

From a quality point of view what you are proposing to do seems like a bad idea.

What exactly do you mean by »perform operations on level masks«?

Why does it take so long, what are the original fullres images’ usual pixel dimensions and bit depths?

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
Advocate ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

The dimensions in px 7360 × 4912 and even bigger bit16

What exactly do you mean by "performing layer masks"?

I mean blur on masks in various rays.

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 ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

Then why do you not transfer and upsample the Layer Masks instead of degrading the composite image content?

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 ,
Aug 23, 2017 Aug 23, 2017

Copy link to clipboard

Copied

Yes it seems what they need to do is scale the layer mask they developed up in size to fit the original image. The results should be good for they seem to want to create a blurred mask in the first place. An Upsize mask should not hurt the masking quality too much. Going from 1k back to 8K is a big change in the number of pixels like 8x

JJMack

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