This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > March 2007 > Info requested (PSP9)
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 |
Info requested (PSP9)
|
|
| Paul Busby 2007-03-11, 7:21 pm |
| I would like to save jpgs from a script after processing. One version with
an "a" appended to the end at 3% compression (1x1 1x1 1x1) & a 2nd reduced
in size to 50% & compression set to 12% with a "b" appended to the file
name. The source & target can bee the same folder. I'm not sure if it's
possible or not & if it is , how to go about writing such a script. I do
used scripting regularly but usually ones from keystrokes or ones modified
from keystrokes. Either direct help or a pointer to where to start would be
much appreciated.
| |
| SuzShook 2007-03-11, 7:21 pm |
| Hi, Paul. Do the jpg files you'll be processing already have names? In
other words, are they pre-saved files you've opened for some processing?
Suz
Paul Busby wrote:
> I would like to save jpgs from a script after processing. One version
> with an "a" appended to the end at 3% compression (1x1 1x1 1x1) & a
> 2nd reduced in size to 50% & compression set to 12% with a "b"
> appended to the file name. The source & target can bee the same
> folder. I'm not sure if it's possible or not & if it is , how to go
> about writing such a script. I do used scripting regularly but
> usually ones from keystrokes or ones modified from keystrokes. Either
> direct help or a pointer to where to start would be much appreciated.
| |
|
|
| Fred Hiltz 2007-03-11, 7:21 pm |
| Paul Busby wrote:
> I would like to save jpgs from a script after processing. One
> version with an "a" appended to the end at 3% compression (1x1
> 1x1 1x1) & a 2nd reduced in size to 50% & compression set to
> 12% with a "b" appended to the file name. The source & target
> can bee the same folder. I'm not sure if it's possible or not
> & if it is , how to go about writing such a script. I do used
> scripting regularly but usually ones from keystrokes or ones
> modified from keystrokes. Either direct help or a pointer to
> where to start would be much appreciated.
JoeB has it right, but I am not sure it is clear that your script
does not open or save any files. Leave that to the batch processor.
Open a typical file, start recording, do all the image processing
(such as the size reduction), and save the script without closing
the file.
The batch processor opens each file you tell it to, runs your script
on it, takes care of appending the "a" in one batch and the "b" in
another, and saves the new file. PSP remembers the JPG settings that
you choose under the Options button of the File > Save As dialog, so
set that up with a typical image before running the batches.
Finally, the compression values are not percentages. They are
arbitrary scales invented by the programmer, and different
programmers used different scales when coding the JPEG algorithm in
different programs. For example, Photoshop's scale runs to higher
numbers for higher quality and PSP's runs to higher numbers for
higher compression.
--
Fred Hiltz, fhiltz at yahoo dot com
| |
| SuzShook 2007-03-11, 7:21 pm |
| underprocessable | |
|
|
| SuzShook 2007-03-12, 7:25 pm |
| Willy wrote:
> "Paul Busby" <me@privacy.net> wrote in message
> news:45f2ee18$1_1@cnews...
>
> I think Suz method is correct. I would do it about the same except I
> use a different way of extracting the path and file name etc. I let
> Python do it. Attached just for comment.
> W
Much better way to do it, Willy! Thanks! Suz
| |
| Paul Busby 2007-03-14, 7:21 pm |
| Thus spake Paul Busby:
> I would like to save jpgs from a script after processing. One version
> with an "a" appended to the end at 3% compression (1x1 1x1 1x1) & a
> 2nd reduced in size to 50% & compression set to 12% with a "b"
> appended to the file name. The source & target can bee the same
> folder. I'm not sure if it's possible or not & if it is , how to go
> about writing such a script. I do used scripting regularly but
> usually ones from keystrokes or ones modified from keystrokes. Either
> direct help or a pointer to where to start would be much appreciated.
Suz, Willy
Thanks so much for your help here! I've modified Willy's slightly to include
EXIF & created a 2nd that has _c & _d appended to files. I've given them
both buttons & will save me hours over a year. I'll need to adjust my
working method slightly to take into account that PSP doesn't show that an
open image has already been saved as the they are effectively copies. This
is no great hardship as the percentage size will have dropped for the images
that have run through the script. I've left the 50% files at 2x2 1x1 1x1.
Regards
| |
| Willy 2007-03-14, 11:19 pm |
| Glad it worked for you.
W
"Paul Busby" <me@privacy.net> wrote in message news:45f727b4_3@cnews...
> Thus spake Paul Busby:
>
> Suz, Willy
>
> Thanks so much for your help here! I've modified Willy's slightly to
> include EXIF & created a 2nd that has _c & _d appended to files. I've
> given them both buttons & will save me hours over a year. I'll need to
> adjust my working method slightly to take into account that PSP doesn't
> show that an open image has already been saved as the they are effectively
> copies. This is no great hardship as the percentage size will have dropped
> for the images that have run through the script. I've left the 50% files
> at 2x2 1x1 1x1.
>
> Regards
>
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|