This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > March 2006 > Exif script - can text size be edited?
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 |
Exif script - can text size be edited?
|
|
|
| In the built in Exif script the text comes out very small both on a
resized jpg to 600*400 and on a full size .tif.
Is it possible to edit the script to have a larger area or text size?
In the Pspx newsgroup a sample of text was posted that was readable and
the built in Exif script was recommended.
Rose
| |
|
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:4426bb34$1_1@cnews:
> In the built in Exif script the text comes out very small both
on a
> resized jpg to 600*400 and on a full size .tif.
> Is it possible to edit the script to have a larger area or text
size?
>
> In the Pspx newsgroup a sample of text was posted that was
readable and
> the built in Exif script was recommended.
>
> Rose
>
I have v.9, but have looked at the script and it was written for
PSP9. It creates sufficiently large text in v.9, so I suspect
the problem is that you are using v.X. In v.9 text size is in
points, not pixels. v.X allows one to choose either points or
pixels in the tool options palette. I suspect that the last time
you used the vector text you had it set for pixels and that is
what is causing the problem, You might try first laying down
some vector text and making sure points is selected in the tool
options palette. The palette should remember that setting the
next time the text tool is used. Now undo or delete this sample
text. Then try running the script.
Regards,
JoeB
| |
|
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:4426bb34$1_1@cnews:
> In the built in Exif script the text comes out very small both
on a
> resized jpg to 600*400 and on a full size .tif.
> Is it possible to edit the script to have a larger area or text
size?
>
> In the Pspx newsgroup a sample of text was posted that was
readable and
> the built in Exif script was recommended.
>
> Rose
>
Rose, besides the suggestion I made in my other post about
resetting the pixel/points mode in the tool options palette, I do
know of one way to change the size of the text in the script
itself if you just find the default size in relation to the image
(even in points) is not to your liking. About midway down the
script is the following:
# Figure out how big the text should be by examining the overall
image size. We'll do a rough
# scale based on 1000 pixels. We won't paint text less than
16 point in any event.
ImageMaxDimension = max(App.TargetDocument.Width,
App.TargetDocument.Height)
TextScaleFactor = max(0.25, float(ImageMaxDimension) /
1000.0)
TextSize = int(16.0 * TextScaleFactor)
If you change the value of 1000.0 at the end of the
TextScaleFactor line to another value (leaving the point zero) it
will change the size of the text. A higher value makes the text
smaller, a lower value makes it larger. Save with a different
name so as not to overwrite the original.
Regards,
JoeB
| |
| RoseW 2006-03-26, 10:44 pm |
| In news:Xns9792733D49F6JoeB@216.191.232.194,
JoeB <myemail@yahoo.com> typed:
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:4426bb34$1_1@cnews:
|
|| In the built in Exif script the text comes out very small both on a
|| resized jpg to 600*400 and on a full size .tif.
|| Is it possible to edit the script to have a larger area or text size?
||
|| In the Pspx newsgroup a sample of text was posted that was readable
|| and the built in Exif script was recommended.
||
|| Rose
||
|
| Rose, besides the suggestion I made in my other post about
| resetting the pixel/points mode in the tool options palette, I do
| know of one way to change the size of the text in the script
| itself if you just find the default size in relation to the image
| (even in points) is not to your liking. About midway down the
| script is the following:
|
| # Figure out how big the text should be by examining the overall
| image size. We'll do a rough
| # scale based on 1000 pixels. We won't paint text less than
| 16 point in any event.
| ImageMaxDimension = max(App.TargetDocument.Width,
| App.TargetDocument.Height)
| TextScaleFactor = max(0.25, float(ImageMaxDimension) /
| 1000.0)
| TextSize = int(16.0 * TextScaleFactor)
|
|
| If you change the value of 1000.0 at the end of the
| TextScaleFactor line to another value (leaving the point zero) it
| will change the size of the text. A higher value makes the text
| smaller, a lower value makes it larger. Save with a different
| name so as not to overwrite the original.
|
| Regards,
|
| JoeB
This is the info that I wanted. The script has been written or done
again (has a new date etc) for PSPx and has the pixel word in it but it
arrives on the image in a miniscule size. I tried it with a resized
image and it was the same thing. Plus it really doesn't give a lot of
info- the F# and one other thing.... Anyway I discovered with much
fiddling that the handles could be grabbed and the text box extended.
The time I took trying to grab and pull I could have had the text typed
in on the image. That's the route I went in the end. I thought if I was
doing a particular test situation it would be handy to have the figures
on the resized jpg for a quick survey.
Rose
| |
|
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44272bda$1_1@cnews:
> In news:Xns9792733D49F6JoeB@216.191.232.194,
> JoeB <myemail@yahoo.com> typed:
>| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:4426bb34$1_1
@cnews:
>|
>|| In the built in Exif script the text comes out very small
both on a
>|| resized jpg to 600*400 and on a full size .tif.
>|| Is it possible to edit the script to have a larger area or
text size?
>||
>|| In the Pspx newsgroup a sample of text was posted that was
readable
>|| and the built in Exif script was recommended.
>||
>|| Rose
>||
>|
>| Rose, besides the suggestion I made in my other post about
>| resetting the pixel/points mode in the tool options palette, I
do
>| know of one way to change the size of the text in the script
>| itself if you just find the default size in relation to the
image
>| (even in points) is not to your liking. About midway down the
>| script is the following:
>|
>| # Figure out how big the text should be by examining the
overall
>| image size. We'll do a rough
>| # scale based on 1000 pixels. We won't paint text less
than
>| 16 point in any event.
>| ImageMaxDimension = max(App.TargetDocument.Width,
>| App.TargetDocument.Height)
>| TextScaleFactor = max(0.25, float(ImageMaxDimension) /
>| 1000.0)
>| TextSize = int(16.0 * TextScaleFactor)
>|
>|
>| If you change the value of 1000.0 at the end of the
>| TextScaleFactor line to another value (leaving the point zero)
it
>| will change the size of the text. A higher value makes the
text
>| smaller, a lower value makes it larger. Save with a different
>| name so as not to overwrite the original.
>|
>| Regards,
>|
>| JoeB
>
> This is the info that I wanted. The script has been written or
done
> again (has a new date etc) for PSPx and has the pixel word in
it but it
> arrives on the image in a miniscule size. I tried it with a
resized
> image and it was the same thing. Plus it really doesn't give a
lot of
> info- the F# and one other thing.... Anyway I discovered with
much
> fiddling that the handles could be grabbed and the text box
extended.
> The time I took trying to grab and pull I could have had the
text typed
> in on the image. That's the route I went in the end. I thought
if I was
> doing a particular test situation it would be handy to have the
figures
> on the resized jpg for a quick survey.
> Rose
>
You can tell if it has been re-written partly by just opening the
script in Notepad and checking the first few lines. If the first
line says from JascApp import * and the ninth line says 'Host':
u'Paint Shop Pro 9', then you can bet it's the same script. It
may have a different modify date simply because that was the date
it was last saved/installed or whatever.
Did you try using the first suggestion, which was simply to do
text in vector with Points selected, get rid of the text and then
run the script to see if the toolbar retained the points and made
the text bigger?
Regards,
JoeB
| |
| RoseW 2006-03-26, 10:44 pm |
| In news:Xns9792B2E9CFE80JoeB@216.191.232.194,
JoeB <myemail@yahoo.com> typed:
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44272bda$1_1@cnews:
|
|| In news:Xns9792733D49F6JoeB@216.191.232.194,
|| JoeB <myemail@yahoo.com> typed:
||| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:4426bb34$1_1 @cnews:
|||
|||| In the built in Exif script the text comes out very small both on a
|||| resized jpg to 600*400 and on a full size .tif.
|||| Is it possible to edit the script to have a larger area or text
|||| size?
||||
|||| Rose
||||
|||
||| Rose, besides the suggestion I made in my other post about
||| resetting the pixel/points mode in the tool options palette, I do
||| know of one way to change the size of the text in the script
||| itself if you just find the default size in relation to the image
||| (even in points) is not to your liking. About midway down the
||| script is the following:
|||
||| # Figure out how big the text should be by examining the overall
||| image size. We'll do a rough
||| # scale based on 1000 pixels. We won't paint text less than
||| 16 point in any event.
||| ImageMaxDimension = max(App.TargetDocument.Width,
||| App.TargetDocument.Height)
||| TextScaleFactor = max(0.25, float(ImageMaxDimension) /
||| 1000.0)
||| TextSize = int(16.0 * TextScaleFactor)
|||
|||
||| If you change the value of 1000.0 at the end of the
||| TextScaleFactor line to another value (leaving the point zero) it
||| will change the size of the text. A higher value makes the text
||| smaller, a lower value makes it larger. Save with a different
||| name so as not to overwrite the original.
|||
||| Regards,
|||
||| JoeB
||
|| This is the info that I wanted. || Rose
||
|
| You can tell if it has been re-written partly by just opening the
| script in Notepad and checking the first few lines. If the first
| line says from JascApp import * and the ninth line says 'Host':
| u'Paint Shop Pro 9', then you can bet it's the same script. It
| may have a different modify date simply because that was the date
| it was last saved/installed or whatever.
|
| Did you try using the first suggestion, which was simply to do
| text in vector with Points selected, get rid of the text and then
| run the script to see if the toolbar retained the points and made
| the text bigger?
|
| Regards,
|
| JoeB
Yes just tried it out-
Changing the value to 500 gives a more reasonable sized text. I also
changed the text to black on a 50% opaque white background- more
suitable for snow backgrounds.
Now I wonder if this area can have an edit
# now assemble exposure information by using the aperture and exposure
Aperture = float(ImageInfo['ExifFNumber'])
CaptionTextExposure = ExposureMsg % (Aperture,
ImageInfo['ExifExposureTime'].strip())
I tried entering ISOspeed into the line after ['ExifExposureTime'] but
it didn't work out.
This script is in the programe PSPx trusted folder . The first lines
are:
from JascApp import *
import string
import JascUtils
def ScriptProperties():
return {
'Author': u'Jasc Software, Inc.',
'Copyright': u'Copyright (c) 2002-2004 Jasc Software, Inc. All
rights reserved.',
'Description': "Put EXIF camera and exposure information at the
bottom of the image.",
'Host': u'Paint Shop Pro 9',
'Host Version': u'9.00',
}
The script in the PSP9 folder has a different copyright date
Rose
| |
|
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44273661$1_2@cnews:
> In news:Xns9792B2E9CFE80JoeB@216.191.232.194,
> JoeB <myemail@yahoo.com> typed:
>| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44272bda$1_1
@cnews:
>|
>|| In news:Xns9792733D49F6JoeB@216.191.232.194,
>|| JoeB <myemail@yahoo.com> typed:
>||| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:4426bb34$1_1
@cnews:
>|||
>|||| In the built in Exif script the text comes out very small
both on a
>|||| resized jpg to 600*400 and on a full size .tif.
>|||| Is it possible to edit the script to have a larger area or
text
>|||| size?
>||||
>|||| Rose
>||||
>|||
>||| Rose, besides the suggestion I made in my other post about
>||| resetting the pixel/points mode in the tool options palette,
I do
>||| know of one way to change the size of the text in the script
>||| itself if you just find the default size in relation to the
image
>||| (even in points) is not to your liking. About midway down
the
>||| script is the following:
>|||
>||| # Figure out how big the text should be by examining the
overall
>||| image size. We'll do a rough
>||| # scale based on 1000 pixels. We won't paint text less
than
>||| 16 point in any event.
>||| ImageMaxDimension = max(App.TargetDocument.Width,
>||| App.TargetDocument.Height)
>||| TextScaleFactor = max(0.25, float(ImageMaxDimension) /
>||| 1000.0)
>||| TextSize = int(16.0 * TextScaleFactor)
>|||
>|||
>||| If you change the value of 1000.0 at the end of the
>||| TextScaleFactor line to another value (leaving the point
zero) it
>||| will change the size of the text. A higher value makes the
text
>||| smaller, a lower value makes it larger. Save with a
different
>||| name so as not to overwrite the original.
>|||
>||| Regards,
>|||
>||| JoeB
>||
>|| This is the info that I wanted. || Rose
>||
>|
>| You can tell if it has been re-written partly by just opening
the
>| script in Notepad and checking the first few lines. If the
first
>| line says from JascApp import * and the ninth line says
'Host':
>| u'Paint Shop Pro 9', then you can bet it's the same script.
It
>| may have a different modify date simply because that was the
date
>| it was last saved/installed or whatever.
>|
>| Did you try using the first suggestion, which was simply to do
>| text in vector with Points selected, get rid of the text and
then
>| run the script to see if the toolbar retained the points and
made
>| the text bigger?
>|
>| Regards,
>|
>| JoeB
>
> Yes just tried it out-
> Changing the value to 500 gives a more reasonable sized text. I
also
> changed the text to black on a 50% opaque white background-
more
> suitable for snow backgrounds.
> Now I wonder if this area can have an edit
>
> # now assemble exposure information by using the aperture and
exposure
> Aperture = float(ImageInfo['ExifFNumber'])
> CaptionTextExposure = ExposureMsg % (Aperture,
> ImageInfo['ExifExposureTime'].strip())
>
> I tried entering ISOspeed into the line after
['ExifExposureTime'] but
> it didn't work out.
>
> This script is in the programe PSPx trusted folder . The first
lines
> are:
> from JascApp import *
> import string
> import JascUtils
>
> def ScriptProperties():
> return {
> 'Author': u'Jasc Software, Inc.',
> 'Copyright': u'Copyright (c) 2002-2004 Jasc Software,
Inc. All
> rights reserved.',
> 'Description': "Put EXIF camera and exposure
information at the
> bottom of the image.",
> 'Host': u'Paint Shop Pro 9',
> 'Host Version': u'9.00',
> }
> The script in the PSP9 folder has a different copyright date
> Rose
>
Sorry Rose, I can't help with editing this last area you're
asking about, as I don't know much about script writing and
nothing about Python. Hopefully somebody with real knowledge
about this stuff (maybe Suz or Ron V ?) will come along with some
help.
I did see your posts with the new EXIF data on the images so was
aware you had made the size change as well as the font color.
Good choices.
Regards,
JoeB
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|