This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > October 2007 > ResizeRememberParameters Script - A New Test Version
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
ResizeRememberParameters Script - A New Test Version
|
|
| SuzShook 2007-10-21, 6:19 pm |
| underprocessable | |
| Joëlle 2007-10-21, 6:19 pm |
|
Wow, that looks like it has been a lot of work.
Thanks Suz!
:-)
Joëlle
"SuzShook" <suzshook@roadrunner.com> wrote in message
news:471b4b46_2@cnews...
>
> I've been working on the Resize script - I believe I have a script now
> that will work on any image, resizing either by Pixels or Percents. Here
> are some program "notes":
>
> 1. The first time the script runs, it will ask you if you wish to resize
> using Height - if you say YES, it will resize by Height; if you say NO, it
> will resize by Width.
>
> 2. The first resize dialog is always interactive. On successive reruns
> of the script on other images, the resize dialog will follow the Default
> Execution Mode (Silent if you do not have the Execution Mode button
> activated, and Interactive if you do). Setting the Execution Mode to
> Silent allows you to apply the script to several images using just CTRL +
> Y to repeat the last action (which, in this case, is running the script).
>
> 3. The script can resize using either Percent or Pixels, and it remembers
> your settings. In order to know how you want to resize, always "prime"
> the Resize dialog before running the script for the first time, setting
> either Pixels or Percent. The script picks up the type of resize (Pixels
> or Percent) from the previous execution of the Resize dialog.
>
> 4. Do not change the "Mode" from Pixels to Percent, or vice-versa, during
> the execution of the script. The script extracts the "mode" used in the
> previous execution, and will not know if you change it in the dialog.
> That's the reason for the "priming" in #3 above.
>
> 5. If you are going to do a new batch of resizes, with a different
> starting size, or method (resizing by percent, for example, rather than
> pixels), clear the ScriptData Communication Area (SCA) - the internal
> storage area used to save the settings - before you start. I posted the
> scripts for clearing and printing the SCA a few days ago.
>
> 6. You can also change the size at any time during the re-application of
> the script to successive images if you are running (or change the mode so
> you are running) interactively. Just remember that the script does the
> calculation for width if you are resizing by height (or height if you are
> resizing by width), so the Lock Ratio checkbox is always UNchecked when
> the Resize dialog pops up (other than the first time the script is used
> during a PSP session, or after clearing the SCA), so be sure you recheck
> that checkbox if you are changing the size for resizing, or your image
> will be distorted.
>
> 7. The script also works in batch mode. Copy the files you want resized
> to a new folder, be sure you "prime" the resize dialog, and set the
> SaveMode to Overwrite (or actually anything but Script Save). The first
> dialog will still pop up, asking you if you want to resize by height, but
> once you've responded, it takes off and resizes all your files.
>
> Please give this script a look, and let me know what you think. I'd also
> like your opinions as to whether I should publish this script as a single
> entity, like the attached script, or publish two separate scripts - one
> for resizing by width, and one for resizing by height. Thanks. Suz
>
> P.S. Cross-posted in X2 group and Scripting group.
>
>
>
| |
|
|
"SuzShook" <suzshook@roadrunner.com> wrote in news:471b4b46_2@cnews:
>
> I've been working on the Resize script - I believe I have a script now
> that will work on any image, resizing either by Pixels or Percents.
> Here are some program "notes":
[snipped
>
> Please give this script a look, and let me know what you think. I'd
> also like your opinions as to whether I should publish this script as
> a single entity, like the attached script, or publish two separate
> scripts - one for resizing by width, and one for resizing by height.
> Thanks. Suz
>
> P.S. Cross-posted in X2 group and Scripting group.
Suz, I note that so far there haven't been many comments compared to the
original script. Perhaps people who want to have the X2 Resize dialogue
remember the width and/or height already snagged your two other scripts and
are happy with them? Or maybe people were just too busy over the weekend.
Regards,
JoeB
| |
| Paul Collins 2007-10-22, 6:20 pm |
|
On Sun, 21 Oct 2007 08:51:16 -0400, SuzShook wrote:
> I've been working on the Resize script - I believe I have a script now
> that will work on any image, resizing either by Pixels or Percents.
> Here are some program "notes":
>
Not sure what I'm doing wrong here but I keep getting the message The
Script Could Not Be loaded.
Now I am not very well up on scripts and know little about them.
I've recorded a couple for my own use and I've downloaded a few,
including you original for Resizing to the Same Height (just for X2).
They all work fine apart from this latest one.
Just to check I'm doing it correctly, in my newsreader I highlighted all
the text from "from JascApp import*" to the end. Copied this to the
clipboard, opened notepad, pasted the clipboard then saved as a text file
to scripts restricted, then renamed the file .PspScript instead of .txt.
I don't do this very often but I'm fairly certain this is what I did with
your last script and that works.
I've opened the two scripts side by side in notepad and the opening
syntax appears to be the same in both scripts.
--
Regards
PLC
(Even Damnation is poisoned with Rainbows)
| |
| SuzShook 2007-10-22, 6:20 pm |
|
Paul Collins wrote:
> On Sun, 21 Oct 2007 08:51:16 -0400, SuzShook wrote:
>
>
> Not sure what I'm doing wrong here but I keep getting the message The
> Script Could Not Be loaded.
>
> Now I am not very well up on scripts and know little about them.
>
> I've recorded a couple for my own use and I've downloaded a few,
> including you original for Resizing to the Same Height (just for X2).
> They all work fine apart from this latest one.
>
> Just to check I'm doing it correctly, in my newsreader I highlighted
> all the text from "from JascApp import*" to the end. Copied this to
> the clipboard, opened notepad, pasted the clipboard then saved as a
> text file to scripts restricted, then renamed the file .PspScript
> instead of .txt.
>
> I don't do this very often but I'm fairly certain this is what I did
> with your last script and that works.
>
> I've opened the two scripts side by side in notepad and the opening
> syntax appears to be the same in both scripts.
I'm not sure what's happening, Paul. Didn't you get the script as an
attachment to the post? If so, just save the attachment to your
Scripts-Restricted folder, and it should work. If you continue to have
problems, email me offline and I will send it to you in a ZIP file. Suz
| |
| Paul Collins 2007-10-22, 6:20 pm |
|
On Mon, 22 Oct 2007 14:57:54 -0400, SuzShook wrote:
> Paul Collins wrote:
SNIP[color=darkred]
>
> I'm not sure what's happening, Paul. Didn't you get the script as an
> attachment to the post? If so, just save the attachment to your
> Scripts-Restricted folder, and it should work. If you continue to have
> problems, email me offline and I will send it to you in a ZIP file. Suz
Thanks - sorted it.
My normal newsreader (Pan) just lists the attachment as text at the
bottom of the post. I've subscribed to the group using Outlook Distress
and it shows as an attachment in that.
Have saved the attachment as you suggested and it works fine - many
thanks for your response. Think I'll stick with Outlook for these groups
- it seems to handle attachments better than Pan.
I'll have a closer look in notepad later and see if I can find the error.
Thanks again.
--
Regards
PLC
(Even Damnation is poisoned with Rainbows)
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|