This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > April 2006 > same size, Resize script
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 |
same size, Resize script
|
|
|
| Hi, is it possible to make a script with resize any size photo to lets' say
800 pixels for the largest side & keep the proportion for the second side?
more explanation. if the photo is portrait, to have the hight resized to 800
pixels & the width to proportion. If the photo is landscape, to resize the
width to 800pixels & leave the hight proportional.
maybe using something like if high.t>width then apply such & such, if the
width>hight to apply this & that...
Dave
| |
| Fred Hiltz 2006-04-11, 7:18 am |
| Dave wrote:
> Hi, is it possible to make a script with resize any size
> photo to lets' say 800 pixels for the largest side & keep
> the proportion for the second side? ...
It certainly is. You would need to learn some basic Python to
program the arithmetic. Alternatively, you can edit the
Thumbnail_150 script that came with PSP, changing 150 to the size
you want as it directs in its comments.
--
Fred Hiltz, fhiltz at yahoo dot com
| |
| SuzShook 2006-04-11, 7:11 pm |
| underprocessable | |
| Spandex Rutabaga 2006-04-11, 7:11 pm |
| Dave wrote:
>
> Hi, is it possible to make a script with resize any size photo to lets' say
> 800 pixels for the largest side & keep the proportion for the second side?
Yes. There is a script that used to come with PSP. I'm not sure it
comes with PSP X. Look for something called Thumbnail_150 and change
the 150 to 800. (The script is a text file you can edit with Notepad
if you are careful about not changing the white space, which is
important to interpreting the script.) As an alternative you can
get http://pixelnook.home.comcast.net/ResizeToLimit.htm, written by
Gary Barton. Or you can use what Sue posted :)
| |
|
| I honestly was shy to ask you for it, but I knew you would help on that one
as well.
Again, Thank you so much, that's exactly what I'm looking for.
Dave
"SuzShook" <suzshook@adelphia.net> wrote in message
news:443b9911$1_3@cnews...
> Hi, Dave. Try the attached scripts. In the one called
> ss-ResizeMaintainAspectRatio, the 800 is hardcoded in the script, but you
> can change that if you wish by editing the script and replacing the 2
> instances of "800" with the value you want to use. If you want to enter
> the correct "new size" each time you run the script, use the
> ss-ResizeMaintainAspectRatio2 script. Hope this helps, Dave. Suz
> --
> Suz Shook
> C-Tech Volunteer
>
>
> Dave wrote:
>
>
>
| |
| SuzShook 2006-04-11, 11:11 pm |
| Ask any time, Dave. Glad to help, and love the challenge! Suz
Dave wrote:[color=darkred]
> I honestly was shy to ask you for it, but I knew you would help on
> that one as well.
> Again, Thank you so much, that's exactly what I'm looking for.
> Dave
>
> "SuzShook" <suzshook@adelphia.net> wrote in message
> news:443b9911$1_3@cnews...
| |
|
| Hi Suz,
Being a bit of a newbie in here could I please ask for some info re this
message.
I'm not sure that I understand why a script would be needed to resize an
image when it can be done using the rsize tool.
There must be a reason but I'm darned if I can work it out.
Thankyou for your patience
Pops
"SuzShook" <suzshook@adelphia.net> wrote in message
news:443b9911$1_3@cnews...
> Hi, Dave. Try the attached scripts. In the one called
> ss-ResizeMaintainAspectRatio, the 800 is hardcoded in the script, but you
> can change that if you wish by editing the script and replacing the 2
> instances of "800" with the value you want to use. If you want to enter
> the correct "new size" each time you run the script, use the
> ss-ResizeMaintainAspectRatio2 script. Hope this helps, Dave. Suz
> --
> Suz Shook
> C-Tech Volunteer
>
>
> Dave wrote:
>
>
>
| |
| Spandex Rutabaga 2006-04-13, 7:12 pm |
| Pops wrote:
>
> Hi Suz,
> Being a bit of a newbie in here could I please ask for some info re this
> message.
>
> I'm not sure that I understand why a script would be needed to resize an
> image when it can be done using the rsize tool.
There is an Image > Resize command but there is no resize tool.
Tools are things like Zoom, Crop, Paintbrush etc. that appear on
the Tool Palette.
> There must be a reason but I'm darned if I can work it out.
You have 1000 images on your hard disk of your daughter's wedding.
You want to email them to friends and family. The images are all
12 megapixels, far too big to to include in email since one will
exceed the permitted size of an individual email and sending many
of them will exceed the storage quota for the recipients email.
At this point you could resize all 1000 of the images by hand to
make them small enough the send. You would have to open each image,
resize it with the Resize command, and then save with a new name
at the chosen JPEG compression (leaving the original image untouched).
That's three steps plus typing a new name. Alternatively, you could
make a script to resize the image no bigger than some target size.
Then you would run that script against all 1000 images in unattended
mode (e.g. while you sleep) using File > Batch > Process. Which
approach would you choose to resize the wedding pictures?
| |
|
| Thankyou Spandex Rutabaga. That explains it fully and I can now see how a
script would be a disinct advantage.
And thanks also for pointing out the difference between a tool and a
command.
Pops
"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:443E68D4.8211A09E@agabatur.xednaps...
> Pops wrote:
>
> There is an Image > Resize command but there is no resize tool.
> Tools are things like Zoom, Crop, Paintbrush etc. that appear on
> the Tool Palette.
>
>
> You have 1000 images on your hard disk of your daughter's wedding.
> You want to email them to friends and family. The images are all
> 12 megapixels, far too big to to include in email since one will
> exceed the permitted size of an individual email and sending many
> of them will exceed the storage quota for the recipients email.
> At this point you could resize all 1000 of the images by hand to
> make them small enough the send. You would have to open each image,
> resize it with the Resize command, and then save with a new name
> at the chosen JPEG compression (leaving the original image untouched).
> That's three steps plus typing a new name. Alternatively, you could
> make a script to resize the image no bigger than some target size.
> Then you would run that script against all 1000 images in unattended
> mode (e.g. while you sleep) using File > Batch > Process. Which
> approach would you choose to resize the wedding pictures?
| |
| Spandex Rutabaga 2006-04-15, 7:05 pm |
| Pops wrote:
> And thanks also for pointing out the difference between a tool and a
> command.
Just for clarity, tools are things that are on the tool palette.
While a tool is active you can do some other thing to the image if
you want, such as running a filter or looking in the layer palette.
Filters are modal. That is to say, if you are running a filter you
are trapped inside a dialog (unlike the case of a tool) and you can't
do anything else until you press OK or Cancel. (Both tools and filters
execute PSP commands, steps from which a script can be created.
> Pops
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|