This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > PainShop Pro Scripting > June 2006 > Re: Script for saving file 3 diff ways (PSP 8) ? - 1 attachment - 1 attachment





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 Re: Script for saving file 3 diff ways (PSP 8) ? - 1 attachment - 1 attachment
JoeB

2006-06-03, 7:29 pm

Dalynn Montgomery <dlaynn.montgomery@verizon.net> wrote in
news:447cd5ac_1@cnews:

> Hi JoeB,
> Thank you for your effort...I tried yours but I got an error

message.
> -something about the script being for a different version of

PSP? I did
> a screen shot of the error message...(attached).
> I'm using PSP 8.
> Thanks so much, anyway
> Dalynn
>
>


Actually, if you had clicked OK on that error dialogue it would
likely have run just fine, but I admit I hadn't noticed that
you're using PSP8.

I've attached another script recorded for PSP8 that, in any
event, might be a bit more convenient for you, paticularly as it
preserves whatever file name you choose for the psp save when it
gives you the jpg save options, so you only have to add PRNT or
WEB as you mentioned you are used to doing..

After you've done what you want with your psp image file, if you
run the script it gives you the Save As dialogue in case you want
to change the name of the psp image. It should default to the
name of the existing image and the folder from which it came
(although you might want to check to be sure) and so just saving
it should work.

After the save it will increase the canvas size to 10x12 inches
with 1" white borders at top and bottom, and open the jpg
optimizer dialogue. The settings are generous for a large image
for print, compression at 5. It will also have the name of your
PSP image so you only have to add PRNT to the end of it (as I saw
from another post is what you have always done). However, you
will likely have to browse to the save folder before saving.

After that save is done, the script will automatically resize the
canvass back to 10x10 inches, cutting off the white top and
bottom borders, merge the layers and then resize at 600x600
pixels, then open the Unsharp Mask dialogue (you have seen
Spandex' suggestions that a bit of USM would likely be good after
resizing to this amount). You can change those settings to best
effect for the image.

Once you click OK on the USM dialoge you'll get the JPG optimizer
again, which now will open in the same folder as the last one,
and you can add WEB to the end of the file name.

Once that is saved, the image in your workspace will undo the USM
filter, undo the resize, and undo the Layers Merge, so you'll
have your image back with all layers intact.

I'm doing this more as a learning experience than anything else,
so would appreciate hearing if this works for you.

Regards,

JoeB


begin 644 3_images_v8_new.PspScript
M9G)O;2!*87-C07!P(&EM<&]R="`J#0H-"F1E9B!38W)I<'10<F]P97)T:65S
M*"DZ#0H@("`@<F5T=7)N('L-"B`@("`@("`@)T%U=&AO<B<Z('4G)RP-"B`@
M("`@("`@)T-O<'ER:6=H="<Z('4G)RP-"B`@("`@("`@)T1E<V-R:7!T:6]N
M)SH@=2<G+`T*("`@("`@("`G2&]S="<Z('4G4&%I;G0@4VAO<"!0<F\G+`T*
M("`@("`@("`G2&]S="!697)S:6]N)SH@=2<X+C$P)PT*("`@("`@("!]#0H-
M"F1E9B!$;RA%;G9I<F]N;65N="DZ#0H@("`@(R!&:6QE4V%V94%S#0H@("`@
M07!P+D1O*"!%;G9I<F]N;65N="P@)T9I;&53879E07,G+"![#0H@("`@("`@
M("`@("`G16YC;V1I;F<G.B![#0H@("`@("`@("`@("`@("`@)U!34"<Z('L-
M"B`@("`@("`@("`@("`@("`@("`@)T-O;7!R97-S:6]N)SH@07!P+D-O;G-T
M86YT<RY0<W!#;VUP<F5S<VEO;BY,6C<W+"`-"B`@("`@("`@("`@("`@("`@
M("`@)U9E<G-I;VXG.B!!<'`N0V]N<W1A;G1S+E!S<%9E<G-I;VXN4%-0.`T*
M("`@("`@("`@("`@("`@("`@("!]#0H@("`@("`@("`@("`@("`@?2P@#0H@
M("`@("`@("`@("`G1FEL94YA;64G.B!U)R<L(`T*("`@("`@("`@("`@)T9I
M;&5&;W)M870G.B!!<'`N0V]N<W1A;G1S+D9I;&5&;W)M870N4%-0+"`-"B`@
M("`@("`@("`@("=&;W)M871$97-C)SH@=2=086EN="!3:&]P(%!R;R!);6%G
M92<L(`T*("`@("`@("`@("`@)T=E;F5R86Q3971T:6YG<R<Z('L-"B`@("`@
M("`@("`@("`@("`G17AE8W5T:6]N36]D92<Z($%P<"Y#;VYS=&%N=',N17AE
M8W5T:6]N36]D92Y);G1E<F%C=&EV92P@#0H@("`@("`@("`@("`@("`@)T%U
M=&]!8W1I;VY-;V1E)SH@07!P+D-O;G-T86YT<RY!=71O06-T:6]N36]D92Y!
M;&Q!;'=A>7,-"B`@("`@("`@("`@("`@("!]+"`-"B`@("`@("`@("`@("=$
M969A=6QT4')O<&5R=&EE<R<Z(%M=#0H@("`@("`@("`@("!]*0T*#0H@("`@
M(R!297-I>F5#86YV87,-"B`@("!!<'`N1&\H($5N=FER;VYM96YT+"`G4F5S
M:7IE0V%N=F%S)RP@>PT*("`@("`@("`@("`@)T%S<&5C=%)A=&EO)SH@,2P@
M#0H@("`@("`@("`@("`G1FEL;$-O;&]R)SH@*#(U-2PR-34L,C4U*2P@#0H@
M("`@("`@("`@("`G2&]R:5!L86-E)SH@07!P+D-O;G-T86YT<RY(;W)I>F]N
M=&%L5'EP92Y#96YT97(L(`T*("`@("`@("`@("`@)TUA:6YT86EN07-P96-T
M)SH@07!P+D-O;G-T86YT<RY";V]L96%N+F9A;'-E+"`-"B`@("`@("`@("`@
M("=.97=$:6U5;FET<R<Z($%P<"Y#;VYS=&%N=',N56YI='-/9DUE87-U<F4N
M26YC:&5S+"`-"B`@("`@("`@("`@("=.97=(96EG:'0G.B`Q,BP@#0H@("`@
M("`@("`@("`G3F5W5VED=&@G.B`Q,"P@#0H@("`@("`@("`@("`G4&QA8V5"
M;W1T;VTG.B`Q+"`-"B`@("`@("`@("`@("=0;&%C94QE9G0G.B`P+"`-"B`@
M("`@("`@("`@("=0;&%C95)I9VAT)SH@,"P@#0H@("`@("`@("`@("`G4&QA
M8V54;W`G.B`Q+"`-"B`@("`@("`@("`@("=697)T4&QA8V4G.B!!<'`N0V]N
M<W1A;G1S+E9E<G1I8V%L5'EP92Y#96YT97(L(`T*("`@("`@("`@("`@)T=E
M;F5R86Q3971T:6YG<R<Z('L-"B`@("`@("`@("`@("`@("`G17AE8W5T:6]N
M36]D92<Z($%P<"Y#;VYS=&%N=',N17AE8W5T:6]N36]D92Y3:6QE;G0L(`T*
M("`@("`@("`@("`@("`@("=!=71O06-T:6]N36]D92<Z($%P<"Y#;VYS=&%N
M=',N075T;T%C=&EO;DUO9&4N36%T8V@-"B`@("`@("`@("`@("`@("!]#0H@
M("`@("`@("`@("!]*0T*#0H@("`@(R!*4$5'($]P=&EM:7IE<@T*("`@($%P
M<"Y$;R@@16YV:7)O;FUE;G0L("=*4$5'3W!T:6UI>F5R)RP@>PT*("`@("`@
M("`@("`@)T9O<FUA="<Z($%P<"Y#;VYS=&%N=',N2G!E9T9O<FUA="Y3=&%N
M9&%R9"P@#0H@("`@("`@("`@("`G0V]M<')E<W-I;VXG.B`U+"`-"B`@("`@
M("`@("`@("=&:6QE3F%M92<Z('4G)RP@#0H@("`@("`@("`@("`G0F%C:V=R
M;W5N9$-O;&]R)SH@*#(U-2PR-34L,C4U*2P@#0H@("`@("`@("`@("`G0VAR
M;VUA4W5B4V%M<&QI;F<G.B!!<'`N0V]N<W1A;G1S+D-H<F]M85-U8E-A;7!L
M:6YG+EE#0U\Q>#%?,7@Q7S%X,2P@#0H@("`@("`@("`@("`G4V%V945X:69$
M871A)SH@07!P+D-O;G-T86YT<RY";V]L96%N+F9A;'-E+"`-"B`@("`@("`@
M("`@("='96YE<F%L4V5T=&EN9W,G.B![#0H@("`@("`@("`@("`@("`@)T5X
M96-U=&EO;DUO9&4G.B!!<'`N0V]N<W1A;G1S+D5X96-U=&EO;DUO9&4N26YT
M97)A8W1I=F4L(`T*("`@("`@("`@("`@("`@("=!=71O06-T:6]N36]D92<Z
M($%P<"Y#;VYS=&%N=',N075T;T%C=&EO;DUO9&4N36%T8V@-"B`@("`@("`@
M("`@("`@("!]#0H@("`@("`@("`@("!]*0T*#0H@("`@(R!297-I>F5#86YV
M87,-"B`@("!!<'`N1&\H($5N=FER;VYM96YT+"`G4F5S:7IE0V%N=F%S)RP@
M>PT*("`@("`@("`@("`@)T%S<&5C=%)A=&EO)SH@,"XX,S,S,S,L(`T*("`@
M("`@("`@("`@)T9I;&Q#;VQO<B<Z("@R-34L,C4U+#(U-2DL(`T*("`@("`@
M("`@("`@)TAO<FE0;&%C92<Z($%P<"Y#;VYS=&%N=',N2&]R:7IO;G1A;%1Y
M<&4N0V5N=&5R+"`-"B`@("`@("`@("`@("=-86EN=&%I;D%S<&5C="<Z($%P
M<"Y#;VYS=&%N=',N0F]O;&5A;BYF86QS92P@#0H@("`@("`@("`@("`G3F5W
M1&EM56YI=',G.B!!<'`N0V]N<W1A;G1S+E5N:71S3V9-96%S=7)E+DEN8VAE
M<RP@#0H@("`@("`@("`@("`G3F5W2&5I9VAT)SH@,3`L(`T*("`@("`@("`@
M("`@)TYE=U=I9'1H)SH@,3`L(`T*("`@("`@("`@("`@)U!L86-E0F]T=&]M
M)SH@+3$L(`T*("`@("`@("`@("`@)U!L86-E3&5F="<Z(#`L(`T*("`@("`@
M("`@("`@)U!L86-E4FEG:'0G.B`P+"`-"B`@("`@("`@("`@("=0;&%C951O
M<"<Z("TQ+"`-"B`@("`@("`@("`@("=697)T4&QA8V4G.B!!<'`N0V]N<W1A
M;G1S+E9E<G1I8V%L5'EP92Y#96YT97(L(`T*("`@("`@("`@("`@)T=E;F5R
M86Q3971T:6YG<R<Z('L-"B`@("`@("`@("`@("`@("`G17AE8W5T:6]N36]D
M92<Z($%P<"Y#;VYS=&%N=',N17AE8W5T:6]N36]D92Y3:6QE;G0L(`T*("`@
M("`@("`@("`@("`@("=!=71O06-T:6]N36]D92<Z($%P<"Y#;VYS=&%N=',N
M075T;T%C=&EO;DUO9&4N36%T8V@-"B`@("`@("`@("`@("`@("!]#0H@("`@
M("`@("`@("!]*0T*#0H@("`@(R!297-I>F4-"B`@("!!<'`N1&\H($5N=FER
M;VYM96YT+"`G4F5S:7IE)RP@>PT*("`@("`@("`@("`@)T%S<&5C=%)A=&EO
M)SH@,2P@#0H@("`@("`@("`@("`G0W5R<F5N=$1I;65N<VEO;E5N:71S)SH@
M07!P+D-O;G-T86YT<RY5;FET<T]F365A<W5R92Y0:7AE;',L(`T*("`@("`@
M("`@("`@)T-U<G)E;G1297-O;'5T:6]N56YI=',G.B!!<'`N0V]N<W1A;G1S
M+E)E<V]L=71I;VY5;FET<RY0:7AE;'-097));BP@#0H@("`@("`@("`@("`G
M2&5I9VAT)SH@-C`P+"`-"B`@("`@("`@("`@("=-86EN=&%I;D%S<&5C=%)A
M=&EO)SH@07!P+D-O;G-T86YT<RY";V]L96%N+G1R=64L(`T*("`@("`@("`@
M("`@)U)E<V%M<&QE)SH@07!P+D-O;G-T86YT<RY";V]L96%N+G1R=64L(`T*
M("`@("`@("`@("`@)U)E<V%M<&QE5'EP92<Z($%P<"Y#;VYS=&%N=',N4F5S
M86UP;&54>7!E+E-M87)T4VEZ92P@#0H@("`@("`@("`@("`G4F5S:7IE06QL
M3&%Y97)S)SH@07!P+D-O;G-T86YT<RY";V]L96%N+G1R=64L(`T*("`@("`@
M("`@("`@)U)E<V]L=71I;VXG.B`R,#`L(`T*("`@("`@("`@("`@)U=I9'1H
M)SH@-C`P+"`-"B`@("`@("`@("`@("='96YE<F%L4V5T=&EN9W,G.B![#0H@
M("`@("`@("`@("`@("`@)T5X96-U=&EO;DUO9&4G.B!!<'`N0V]N<W1A;G1S
M+D5X96-U=&EO;DUO9&4N4VEL96YT+"`-"B`@("`@("`@("`@("`@("`G075T
M;T%C=&EO;DUO9&4G.B!!<'`N0V]N<W1A;G1S+D%U=&]!8W1I;VY-;V1E+DUA
M=&-H#0H@("`@("`@("`@("`@("`@?0T*("`@("`@("`@("`@?2D-"@T*("`@
M(",@3F]R;6%L5FEE=VEN9PT*("`@($%P<"Y$;R@@16YV:7)O;FUE;G0L("=.
M;W)M86Q6:65W:6YG)RP@>PT*("`@("`@("`@("`@)T=E;F5R86Q3971T:6YG
M<R<Z('L-"B`@("`@("`@("`@("`@("`G17AE8W5T:6]N36]D92<Z($%P<"Y#
M;VYS=&%N=',N17AE8W5T:6]N36]D92Y3:6QE;G0L(`T*("`@("`@("`@("`@
M("`@("=!=71O06-T:6]N36]D92<Z($%P<"Y#;VYS=&%N=',N075T;T%C=&EO
M;DUO9&4N36%T8V@-"B`@("`@("`@("`@("`@("!]#0H@("`@("`@("`@("!]
M*0T*#0H@("`@(R!,87EE<DUE<F=E06QL#0H@("`@07!P+D1O*"!%;G9I<F]N
M;65N="P@)TQA>65R365R9V5!;&PG+"![#0H@("`@("`@("`@("`G1V5N97)A
M;%-E='1I;F=S)SH@>PT*("`@("`@("`@("`@("`@("=%>&5C=71I;VY-;V1E
M)SH@07!P+D-O;G-T86YT<RY%>&5C=71I;VY-;V1E+E-I;&5N="P@#0H@("`@
M("`@("`@("`@("`@)T%U=&]!8W1I;VY-;V1E)SH@07!P+D-O;G-T86YT<RY!
M=71O06-T:6]N36]D92Y-871C:`T*("`@("`@("`@("`@("`@('T-"B`@("`@
M("`@("`@('TI#0H-"B`@("`C(%5N<VAA<G`@36%S:PT*("`@($%P<"Y$;R@@
M16YV:7)O;FUE;G0L("=5;G-H87)P36%S:R<L('L-"B`@("`@("`@("`@("=#
M;&EP<&EN9R<Z(#4L(`T*("`@("`@("`@("`@)U)A9&EU<R<Z(#$L(`T*("`@
M("`@("`@("`@)U-T<F5N9W1H)SH@-C`L(`T*("`@("`@("`@("`@)T=E;F5R
M86Q3971T:6YG<R<Z('L-"B`@("`@("`@("`@("`@("`G17AE8W5T:6]N36]D
M92<Z($%P<"Y#;VYS=&%N=',N17AE8W5T:6]N36]D92Y);G1E<F%C=&EV92P@
M#0H@("`@("`@("`@("`@("`@)T%U=&]!8W1I;VY-;V1E)SH@07!P+D-O;G-T
M86YT<RY!=71O06-T:6]N36]D92Y-871C:`T*("`@("`@("`@("`@("`@('T-
M"B`@("`@("`@("`@('TI#0H-"B`@("`C($I014<@3W!T:6UI>F5R#0H@("`@
M07!P+D1O*"!%;G9I<F]N;65N="P@)TI014=/<'1I;6EZ97(G+"![#0H@("`@
M("`@("`@("`G1F]R;6%T)SH@07!P+D-O;G-T86YT<RY*<&5G1F]R;6%T+E-T
M86YD87)D+"`-"B`@("`@("`@("`@("=#;VUP<F5S<VEO;B<Z(#4L(`T*("`@
M("`@("`@("`@)T9I;&5.86UE)SH@=2<G+"`-"B`@("`@("`@("`@("="86-K
M9W)O=6YD0V]L;W(G.B`H,C4U+#(U-2PR-34I+"`-"B`@("`@("`@("`@("=#
M:')O;6%3=6)386UP;&EN9R<Z($%P<"Y#;VYS=&%N=',N0VAR;VUA4W5B4V%M
M<&QI;F<N64-#7S%X,5\Q>#%?,7@Q+"`-"B`@("`@("`@("`@("=3879E17AI
M9D1A=&$G.B!!<'`N0V]N<W1A;G1S+D)O;VQE86XN9F%L<V4L(`T*("`@("`@
M("`@("`@)T=E;F5R86Q3971T:6YG<R<Z('L-"B`@("`@("`@("`@("`@("`G
M17AE8W5T:6]N36]D92<Z($%P<"Y#;VYS=&%N=',N17AE8W5T:6]N36]D92Y)
M;G1E<F%C=&EV92P@#0H@("`@("`@("`@("`@("`@)T%U=&]!8W1I;VY-;V1E
M)SH@07!P+D-O;G-T86YT<RY!=71O06-T:6]N36]D92Y-871C:`T*("`@("`@
M("`@("`@("`@('T-"B`@("`@("`@("`@('TI#0H-"B`@("`C(%5N9&],87-T
M0VUD#0H@("`@07!P+D1O*"!%;G9I<F]N;65N="P@)U5N9&],87-T0VUD)RP@
M>PT*("`@("`@("`@("`@#0H@("`@("`@("`@("!]*0T*#0H@("`@(R!5;F1O
M3&%S=$-M9`T*("`@($%P<"Y$;R@@16YV:7)O;FUE;G0L("=5;F1O3&%S=$-M
M9"<L('L-"B`@("`@("`@("`@(`T*("`@("`@("`@("`@?2D-"@T*("`@(",@
M56YD;TQA<W1#;60-"B`@("!!<'`N1&\H($5N=FER;VYM96YT+"`G56YD;TQA
K<W1#;60G+"![#0H@("`@("`@("`@("`-"B`@("`@("`@("`@('TI#0H-"@#/
`
end

JoeB

2006-06-03, 7:29 pm

Dalynn Montgomery <dlaynn.montgomery@verizon.net> wrote in
news:447da7c0$1_1@cnews:

> JoeB wrote:
> Hi JoeB,
> I tried your new script and it did work but the web image

produced was
> of a lower quality (for lack of a better word) than Suz's

script. I had
> to set a higher number for the jpeg optimiser and (to get the

file size
> under 120kb).
>


One of the reasons the jpg optimizer runs interactively in the
script is so that you can change the settings to suit the image.
I have the compression level set at 5, which is very low
compression (the opposite of photoshop, where lower numbers mean
higher compression). The file output size you get at any
compression setting will vary depending on the information in the
image, so you almost always have to change the compression for
each image if you are attempting to get a specific saved file
size.


> Also I have a question:
> I usually don't do a jpeg optimiser for my PRNT files. I

noticed your
> script does this. Is this something I should be doing? Or is

that simply
> to get the file size smaller to upload etc? I'm going to really

show my
> ignorance by asking this...but does the jpeg optimizer in any

other way
> improve the image quality?


If you just do a straight Save for a jpg it will use the default
compression level set in PSP, giving you no control. If you use
Save As and choose jpg you can click the options button to at
least see the compression level and change it if you wish. Using
the Optimizer right off the bat gives you access to all of the
options, shows what the resulting file size will be at a given
compression. As well, you have a preview window so you can see
when the compression starts to create noticeable artifacts. Yes,
the jpg optimizer is the best way to save jpgs.


Regards,

JoeB
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews