This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > April 2006 > PSP x filename 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 |
PSP x filename script
|
|
|
| Hi
I'm trying to write a script to watermark the filename on the image without
changing anything in the image, just add the file name on the bottom left
corner of it, & to be rotated 90 deg up,
it has to be arround 10 px away from the bottom left corner.
no prompt, for batch proccess.
Dave
| |
|
| In news:442904bf$1_2@cnews,
Dave <topart@iprimus.com.au> typed:
| Hi
| I'm trying to write a script to watermark the filename on the image
| without changing anything in the image, just add the file name on the
| bottom left corner of it, & to be rotated 90 deg up,
| it has to be arround 10 px away from the bottom left corner.
| no prompt, for batch proccess.
| Dave
In the thread' Exif script-can text size be edited' ROD posted a J.Fromm
script that likely has the feature in its choices that you want. Browse
through the thread to note the guidance for the annotation edits in the
script. There are a lot of choices in the script and I noted that
'Watermark' was included.
Rose
| |
|
| I've looked at the script, can't see anything about filename.
Unless I'm missing something.
Dave
"RoseW" <wdmn@NShurontel.on.ca> wrote in message news:44295339_1@cnews...
> In news:442904bf$1_2@cnews,
> Dave <topart@iprimus.com.au> typed:
> | Hi
> | I'm trying to write a script to watermark the filename on the image
> | without changing anything in the image, just add the file name on the
> | bottom left corner of it, & to be rotated 90 deg up,
> | it has to be arround 10 px away from the bottom left corner.
> | no prompt, for batch proccess.
> | Dave
>
> In the thread' Exif script-can text size be edited' ROD posted a J.Fromm
> script that likely has the feature in its choices that you want. Browse
> through the thread to note the guidance for the annotation edits in the
> script. There are a lot of choices in the script and I noted that
> 'Watermark' was included.
> Rose
>
>
| |
| RoseW 2006-03-28, 10:56 pm |
| In news:4429e6ba_3@cnews,
Dave <topart@iprimus.com.au> typed:
| I've looked at the script, can't see anything about filename.
| Unless I'm missing something.
| Dave
|
| "RoseW" <wdmn@NShurontel.on.ca> wrote in message
| news:44295339_1@cnews...
|| In news:442904bf$1_2@cnews,
|| Dave <topart@iprimus.com.au> typed:
||| Hi
||| I'm trying to write a script to watermark the filename on the image
||| without changing anything in the image, just add the file name on
||| the bottom left corner of it, & to be rotated 90 deg up,
||| it has to be arround 10 px away from the bottom left corner.
||| no prompt, for batch proccess.
||| Dave
||
|| In the thread' Exif script-can text size be edited' ROD posted a
|| J.Fromm script that likely has the feature in its choices that you
|| want. Browse through the thread to note the guidance for the
|| annotation edits in the script. There are a lot of choices in the
|| script and I noted that 'Watermark' was included.
|| Rose
in the first of the text items in the ## list is image name
## TextList.append( Annotations['Image Name'] ) # Image name,
no path or extension
You would position the cursor after the ##, backspace to remove these
'comment out' signals. It puts the actual file name down in the right
hand corner
Otherwise -down in the content of the script there is this information:
regarding placing watermark stuff.....
# When PlaceTextBlock returns, the layer group will be selected. If
you like, you
# can continue to manipulate that, as in the example below...
##
## # suppose you want to place a simple watermark through the center
of an
## # image, and you want to rotate it and fade it after it is
created....
## PlaceTextBlock( Environment, 'Sample',
## Placement = (Center, Center), # centered on the image
## LayerName = 'Watermark',
## Font = 'Arial',
## Size = ComputeTextSize( Environment, 20, Percent), #
20% of image height
## TextColor = (0xff, 0, 0), # pure red
## ShadowOpacity = 0 ) # opacity of zero means no
shadow box and no layer group
##
## # now rotate it 45 degrees to the left...
## App.Do( Environment, 'Rotate', {
## 'RotAngleDegrees': 315,
## 'Direction': App.Constants.Boolean.false,
## 'Rotate All Layers': App.Constants.Boolean.false,
## 'FillMaterial': None,
## 'Rotate single layer around canvas center':
App.Constants.Boolean.false,
## 'GeneralSettings': {
## 'ExecutionMode': App.Constants.ExecutionMode.Silent,
## 'AutoActionMode': App.Constants.AutoActionMode.Match
## }
## })
##
## # ...and lower the opacity
## # Layer Properties
## App.Do( Environment, 'LayerProperties', {
## 'General': {
## 'Opacity': 33,
## },
## 'GeneralSettings': {
## 'ExecutionMode': App.Constants.ExecutionMode.Silent,
## 'AutoActionMode': App.Constants.AutoActionMode.Default
## }
## })
| |
|
| Thank you for that
At the moment, I'm doing a FileName text where it's rotated & away from the
bottom of image arround 10 pixels, I can't do that because each file name
(student name) has different length, other wise I would've used the move
option, but since each one has different length it's not done the same
place, is there a way to use the option where it's measured used the size of
the text -/+ pixels?
Dave
"RoseW" <wdmn@NShurontel.on.ca> wrote in message news:442a045c$1_3@cnews...
> In news:4429e6ba_3@cnews,
> Dave <topart@iprimus.com.au> typed:
> | I've looked at the script, can't see anything about filename.
> | Unless I'm missing something.
> | Dave
> |
> | "RoseW" <wdmn@NShurontel.on.ca> wrote in message
> | news:44295339_1@cnews...
> || In news:442904bf$1_2@cnews,
> || Dave <topart@iprimus.com.au> typed:
> ||| Hi
> ||| I'm trying to write a script to watermark the filename on the image
> ||| without changing anything in the image, just add the file name on
> ||| the bottom left corner of it, & to be rotated 90 deg up,
> ||| it has to be arround 10 px away from the bottom left corner.
> ||| no prompt, for batch proccess.
> ||| Dave
> ||
> || In the thread' Exif script-can text size be edited' ROD posted a
> || J.Fromm script that likely has the feature in its choices that you
> || want. Browse through the thread to note the guidance for the
> || annotation edits in the script. There are a lot of choices in the
> || script and I noted that 'Watermark' was included.
> || Rose
>
> in the first of the text items in the ## list is image name
> ## TextList.append( Annotations['Image Name'] ) # Image name,
> no path or extension
> You would position the cursor after the ##, backspace to remove these
> 'comment out' signals. It puts the actual file name down in the right
> hand corner
>
> Otherwise -down in the content of the script there is this information:
> regarding placing watermark stuff.....
>
> # When PlaceTextBlock returns, the layer group will be selected. If
> you like, you
> # can continue to manipulate that, as in the example below...
> ##
> ## # suppose you want to place a simple watermark through the center
> of an
> ## # image, and you want to rotate it and fade it after it is
> created....
> ## PlaceTextBlock( Environment, 'Sample',
> ## Placement = (Center, Center), # centered on the image
> ## LayerName = 'Watermark',
> ## Font = 'Arial',
> ## Size = ComputeTextSize( Environment, 20, Percent), #
> 20% of image height
> ## TextColor = (0xff, 0, 0), # pure red
> ## ShadowOpacity = 0 ) # opacity of zero means no
> shadow box and no layer group
> ##
> ## # now rotate it 45 degrees to the left...
> ## App.Do( Environment, 'Rotate', {
> ## 'RotAngleDegrees': 315,
> ## 'Direction': App.Constants.Boolean.false,
> ## 'Rotate All Layers': App.Constants.Boolean.false,
> ## 'FillMaterial': None,
> ## 'Rotate single layer around canvas center':
> App.Constants.Boolean.false,
> ## 'GeneralSettings': {
> ## 'ExecutionMode': App.Constants.ExecutionMode.Silent,
> ## 'AutoActionMode': App.Constants.AutoActionMode.Match
> ## }
> ## })
> ##
> ## # ...and lower the opacity
> ## # Layer Properties
> ## App.Do( Environment, 'LayerProperties', {
> ## 'General': {
> ## 'Opacity': 33,
> ## },
> ## 'GeneralSettings': {
> ## 'ExecutionMode': App.Constants.ExecutionMode.Silent,
> ## 'AutoActionMode': App.Constants.AutoActionMode.Default
> ## }
> ## })
>
>
| |
|
| In news:442e5d6d_3@cnews,
Dave <topart@iprimus.com.au> typed:
| Thank you for that
| At the moment, I'm doing a FileName text where it's rotated & away
| from the bottom of image arround 10 pixels, I can't do that because
| each file name (student name) has different length, other wise I
| would've used the move option, but since each one has different
| length it's not done the same place, is there a way to use the option
| where it's measured used the size of the text -/+ pixels?
| Dave
|
I think it would be wise to post this specific request again with a new
subject title in order to attract those who are very skilled with script
writing. In fact do a -PING script experts: as part of the subject
title.
I think there could be specific x & y locators and a text sizing code.
I'm no script expert. I can edit but to create then its time for those
well versed in this sector.
Rose
| |
| SuzShook 2006-04-02, 6:44 pm |
| underprocessable | |
| SuzShook 2006-04-02, 6:44 pm |
| underprocessable | |
| SuzShook 2006-04-02, 6:44 pm |
| underprocessable |
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|