another resize question

O
Posted By
Olek
Jan 14, 2005
Views
354
Replies
8
Status
Closed
I have photoshop 7, win xp
I also have a directory with 900 jpgs
They are all various sizes and resolutions.
I know how to make them all 72 resolution and to fit them to 500×500 using an action script, but I don’t want the pictures which are now smaller than 500×500 to be stretched. Is there anyway to have the action script check the size before it does anything, and leave them alone if they are already smaller than 500×500 ?
red

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

S
Sami
Jan 14, 2005
How about basic javascript (I assume you use javascript) condition in your script

if ( activeDocument.width > 500 || activeDocument.height > 500 ) { // do your resizing…
}

Sami

meltedown wrote:
I have photoshop 7, win xp
I also have a directory with 900 jpgs
They are all various sizes and resolutions.
I know how to make them all 72 resolution and to fit them to 500×500 using an action script, but I don’t want the pictures which are now smaller than 500×500 to be stretched. Is there anyway to have the action script check the size before it does anything, and leave them alone if they are already smaller than 500×500 ?
red
O
Olek
Jan 14, 2005
Sami wrote:

meltedown wrote:

I have photoshop 7, win xp
I also have a directory with 900 jpgs
They are all various sizes and resolutions.
I know how to make them all 72 resolution and to fit them to 500×500 using an action script, but I don’t want the pictures which are now smaller than 500×500 to be stretched. Is there anyway to have the action script check the size before it does anything, and leave them alone if they are already smaller than 500×500 ?
red
How about basic javascript (I assume you use javascript) condition in your script

if ( activeDocument.width > 500 || activeDocument.height > 500 ) { // do your resizing…
}

Sami
I don’t get it. Can I put javascript into a photoshop actin script ? How would I do that ?
S
Sami
Jan 14, 2005
So you didn’t use script at all but actions, those are two different things. With only actions, I think that isn’t possible, there is no way to apply conditions. If you want to script PS 7, download scripting plugin from Adobe (http://www.adobe.com/support/downloads/main.html) and read the documentation.

Sami

meltedown wrote:
Sami wrote:

meltedown wrote:

I have photoshop 7, win xp
I also have a directory with 900 jpgs
They are all various sizes and resolutions.
I know how to make them all 72 resolution and to fit them to 500×500 using an action script, but I don’t want the pictures which are now smaller than 500×500 to be stretched. Is there anyway to have the action script check the size before it does anything, and leave them alone if they are already smaller than 500×500 ?
red

How about basic javascript (I assume you use javascript) condition in your script

if ( activeDocument.width > 500 || activeDocument.height > 500 ) { // do your resizing…
}

Sami
I don’t get it. Can I put javascript into a photoshop actin script ? How would I do that ?
O
Olek
Jan 15, 2005
Sami wrote:
So you didn’t use script at all but actions, those are two different things. With only actions, I think that isn’t possible, there is no way to apply conditions. If you want to script PS 7, download scripting plugin from Adobe (http://www.adobe.com/support/downloads/main.html) and read the documentation.

I did all that, and there is nothing in the documentqtion about running a script in batch mode. It mentions it, but doesn’t tell you how to do it. How do you run a script in batch mode ?
S
steggy
Jan 15, 2005
meltedown wrote:
Sami wrote:
So you didn’t use script at all but actions, those are two different things. With only actions, I think that isn’t possible, there is no way to apply conditions. If you want to script PS 7, download scripting plugin from Adobe (http://www.adobe.com/support/downloads/main.html) and read the documentation.

I did all that, and there is nothing in the documentqtion about running a script in batch mode. It mentions it, but doesn’t tell you how to do it. How do you run a script in batch mode ?

I am not familiar with this stuff, but what comes to mind is: make an action that runs the script in batch mode?

steg
S
Sami
Jan 15, 2005
Make an action that uses script and then use it in batch mode.

Sami

meltedown wrote:
Sami wrote:

So you didn’t use script at all but actions, those are two different things. With only actions, I think that isn’t possible, there is no way to apply conditions. If you want to script PS 7, download scripting plugin from Adobe
(http://www.adobe.com/support/downloads/main.html) and read the documentation.

I did all that, and there is nothing in the documentqtion about running a script in batch mode. It mentions it, but doesn’t tell you how to do it. How do you run a script in batch mode ?
O
Olek
Jan 15, 2005
Sami wrote:

meltedown wrote:

Sami wrote:

So you didn’t use script at all but actions, those are two different things. With only actions, I think that isn’t possible, there is no way to apply conditions. If you want to script PS 7, download scripting plugin from Adobe
(http://www.adobe.com/support/downloads/main.html) and read the documentation.

I did all that, and there is nothing in the documentqtion about running a script in batch mode. It mentions it, but doesn’t tell you how to do it. How do you run a script in batch mode ?

Make an action that uses script and then use it in batch mode.
Sami
Yes that worked, thanks.
S
Sami
Jan 15, 2005
You’re welcome. 🙂

Sami

meltedown wrote:
Sami wrote:

meltedown wrote:

Sami wrote:

So you didn’t use script at all but actions, those are two different things. With only actions, I think that isn’t possible, there is no way to apply conditions. If you want to script PS 7, download scripting plugin from Adobe
(http://www.adobe.com/support/downloads/main.html) and read the documentation.

I did all that, and there is nothing in the documentqtion about running a script in batch mode. It mentions it, but doesn’t tell you how to do it. How do you run a script in batch mode ?

Make an action that uses script and then use it in batch mode.
Sami
Yes that worked, thanks.

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

Related Discussion Topics

Nice and short text about related topics in discussion sections