This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > March 2006 > Exif script frm Jo Fromm
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 frm Jo Fromm
|
|
|
|
|
| In news:44279009_2@cnews,
Rod <rh_au@yahoo.com.au> typed:
| Hi - here's a copied original post from Jo Fromm with attached EXIF
| script - which works superbly.
|
| *********************************************************
| ----- Original Message -----
| From: Joe Fromm
| Newsgroups: corel.PaintShopPro_Scripting
| Sent: Sunday, June 12, 2005 1:34 AM
| Subject: Re: Format Exif Date Time
|
|
| I'm not sure what script you started with. I've attached one called
| ImageAnnotate which supports a fairly extensive set of annotations,
| including dates formatted various ways.
|
| The documentation for time.strftime is here:
| http://docs.python.org/lib/module-time.html
|
| If you look at the PSP scripting API for the return value of the
| ReturnImageInfo command, you can see all the Exif tags it returns,
| thought there isn't much detail about any of them. My code uses
| ExifOriginalDate, but to be honest I don't remember the distinction
| between that and ExifDateTime.
|
Thanks, I have saved it in the PSP restricted folder. I'll find out if
its supposed to be in the trusted folder <grin>
Rose
| |
|
| In news:44280052_3@cnews,
RoseW <wdmn@NShurontel.on.ca> typed:
| In news:44279009_2@cnews,
| Rod <rh_au@yahoo.com.au> typed:
|| Hi - here's a copied original post from Jo Fromm with attached EXIF
|| script - which works superbly.
||
|| *********************************************************
|| ----- Original Message -----
|| From: Joe Fromm
|| Newsgroups: corel.PaintShopPro_Scripting
|| Sent: Sunday, June 12, 2005 1:34 AM
|| Subject: Re: Format Exif Date Time
||
||
|| I'm not sure what script you started with. I've attached one called
|| ImageAnnotate which supports a fairly extensive set of annotations,
|| including dates formatted various ways.
||
|| The documentation for time.strftime is here:
|| http://docs.python.org/lib/module-time.html
||
|| If you look at the PSP scripting API for the return value of the
|| ReturnImageInfo command, you can see all the Exif tags it returns,
|| thought there isn't much detail about any of them. My code uses
|| ExifOriginalDate, but to be honest I don't remember the distinction
|| between that and ExifDateTime.
||
|
| Thanks, I have saved it in the PSP restricted folder. I'll find out if
| its supposed to be in the trusted folder <grin>
| Rose
It has to be in the Trusted folder.
Do you get a report on the F number, Iso speed, focal length?
I just get base name, file size and date.
I think annotations either have to inserted into the code or commented
out.
I tried a few edits but none of them worked.
Rose
| |
|
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44281020$1_2@cnews:
> In news:44280052_3@cnews,
> RoseW <wdmn@NShurontel.on.ca> typed:
>| In news:44279009_2@cnews,
>| Rod <rh_au@yahoo.com.au> typed:
>|| Hi - here's a copied original post from Jo Fromm with
attached EXIF
>|| script - which works superbly.
>||
>|| *********************************************************
>|| ----- Original Message -----
>|| From: Joe Fromm
>|| Newsgroups: corel.PaintShopPro_Scripting
>|| Sent: Sunday, June 12, 2005 1:34 AM
>|| Subject: Re: Format Exif Date Time
>||
>||
>|| I'm not sure what script you started with. I've attached one
called
>|| ImageAnnotate which supports a fairly extensive set of
annotations,
>|| including dates formatted various ways.
>||
>|| The documentation for time.strftime is here:
>|| http://docs.python.org/lib/module-time.html
>||
>|| If you look at the PSP scripting API for the return value of
the
>|| ReturnImageInfo command, you can see all the Exif tags it
returns,
>|| thought there isn't much detail about any of them. My code
uses
>|| ExifOriginalDate, but to be honest I don't remember the
distinction
>|| between that and ExifDateTime.
>||
>|
>| Thanks, I have saved it in the PSP restricted folder. I'll
find out if
>| its supposed to be in the trusted folder <grin>
>| Rose
> It has to be in the Trusted folder.
> Do you get a report on the F number, Iso speed, focal length?
> I just get base name, file size and date.
> I think annotations either have to inserted into the code or
commented
> out.
> I tried a few edits but none of them worked.
> Rose
>
Rose, it's easy enough to edit. At present most of the strings
are commented out. If it is more EXIF data you want on your
images, start by going to the stuff below this line in the
script:
# this data all comes from EXIF information, which is produced by
digital cameras
You'll see quite a few lines beginning like this:
## TextList.append( Annotations
Look for the lines that have the info you want (ISO Speed, Focal
Length or whatever). Then just put your cursor to the immdiate
right of the two ## signs and backspace twice to remove them.
That should allow that info (as long as it's in your image from
your camera) to be printed on the image when you run the script.
It works fine for me in PSP9.
Regards,
JoeB
| |
|
| In news:Xns9793A13F5C866JoeB@216.191.232.194,
JoeB <myemail@yahoo.com> typed:
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44281020$1_2@cnews:
|
|| In news:44280052_3@cnews,
|| RoseW <wdmn@NShurontel.on.ca> typed:
||| In news:44279009_2@cnews,
||| Rod <rh_au@yahoo.com.au> typed:
|||| Hi - here's a copied original post from Jo Fromm with attached EXIF
|||| script - which works superbly.
||||
|||| *********************************************************
||||
||||
|||| I'm not sure what script you started with. I've attached one
|||| called ImageAnnotate which supports a fairly extensive set of
|||| annotations, including dates formatted various ways.
..
||| Rose
|| It has to be in the Trusted folder.
|| Do you get a report on the F number, Iso speed, focal length?
|| I just get base name, file size and date.
|| I think annotations either have to inserted into the code or
|| commented out.
|| I tried a few edits but none of them worked.
|| Rose
||
|
| Rose, it's easy enough to edit. At present most of the strings
| are commented out. If it is more EXIF data you want on your
| images, start by going to the stuff below this line in the
| script:
|
| # this data all comes from EXIF information, which is produced by
| digital cameras
|
| You'll see quite a few lines beginning like this:
|
| ## TextList.append( Annotations
|
| Look for the lines that have the info you want (ISO Speed, Focal
| Length or whatever). Then just put your cursor to the immdiate
| right of the two ## signs and backspace twice to remove them.
| That should allow that info (as long as it's in your image from
| your camera) to be printed on the image when you run the script.
| It works fine for me in PSP9.
| Regards,
| JoeB
Well, you have come to the rescue once more. Backspace and remove the ##
worked perfectly. I was editting too heartily <grin>
I think when backspacing it moves the text over and that might be
important since the first one in the list has a specific place. I
noticed that just having the text out of alignment could cause it to not
load.
Thanks again.
Rose
| |
|
| In news:442873e5_3@cnews,
RoseW <wdmn@NShurontel.on.ca> typed:
| In news:Xns9793A13F5C866JoeB@216.191.232.194,
| JoeB <myemail@yahoo.com> typed:
|| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44281020$1_2@cnews:
||
||| In news:44280052_3@cnews,
||| RoseW <wdmn@NShurontel.on.ca> typed:
|||| In news:44279009_2@cnews,
|||| Rod <rh_au@yahoo.com.au> typed:
||||| Hi - here's a copied original post from Jo Fromm with attached
||||| EXIF script - which works superbly.
|||||
||||| *********************************************************
|||||
|||||
||||| I'm not sure what script you started with. I've attached one
||||| called ImageAnnotate which supports a fairly extensive set of
||||| annotations, including dates formatted various ways.
| .
|||| Rose
||| It has to be in the Trusted folder.
||| Do you get a report on the F number, Iso speed, focal length?
||| I just get base name, file size and date.
||| I think annotations either have to inserted into the code or
||| commented out.
||| I tried a few edits but none of them worked.
||| Rose
|||
||
|| Rose, it's easy enough to edit. At present most of the strings
|| are commented out. If it is more EXIF data you want on your
|| images, start by going to the stuff below this line in the
|| script:
||
|| # this data all comes from EXIF information, which is produced by
|| digital cameras
||
|| You'll see quite a few lines beginning like this:
||
|| ## TextList.append( Annotations
||
|| Look for the lines that have the info you want (ISO Speed, Focal
|| Length or whatever). Then just put your cursor to the immdiate
|| right of the two ## signs and backspace twice to remove them.
|| That should allow that info (as long as it's in your image from
|| your camera) to be printed on the image when you run the script.
|| It works fine for me in PSP9.
|| Regards,
|| JoeB
AND on top of all that I found where the text size could be made a bit
smaller (8 vs 10) ALSO could edit out excess words in the EXIF data
describing the settings.
Works great!
Rose
| |
|
| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44287a59_1@cnews:
> In news:442873e5_3@cnews,
> RoseW <wdmn@NShurontel.on.ca> typed:
>| In news:Xns9793A13F5C866JoeB@216.191.232.194,
>| JoeB <myemail@yahoo.com> typed:
>|| "RoseW" <wdmn@NShurontel.on.ca> wrote in news:44281020$1_2
@cnews:
>||
>||| In news:44280052_3@cnews,
>||| RoseW <wdmn@NShurontel.on.ca> typed:
>|||| In news:44279009_2@cnews,
>|||| Rod <rh_au@yahoo.com.au> typed:
>||||| Hi - here's a copied original post from Jo Fromm with
attached
>||||| EXIF script - which works superbly.
>|||||
>||||| *********************************************************
>|||||
>|||||
>||||| I'm not sure what script you started with. I've attached
one
>||||| called ImageAnnotate which supports a fairly extensive set
of
>||||| annotations, including dates formatted various ways.
>| .
>|||| Rose
>||| It has to be in the Trusted folder.
>||| Do you get a report on the F number, Iso speed, focal
length?
>||| I just get base name, file size and date.
>||| I think annotations either have to inserted into the code or
>||| commented out.
>||| I tried a few edits but none of them worked.
>||| Rose
>|||
>||
>|| Rose, it's easy enough to edit. At present most of the
strings
>|| are commented out. If it is more EXIF data you want on your
>|| images, start by going to the stuff below this line in the
>|| script:
>||
>|| # this data all comes from EXIF information, which is
produced by
>|| digital cameras
>||
>|| You'll see quite a few lines beginning like this:
>||
>|| ## TextList.append( Annotations
>||
>|| Look for the lines that have the info you want (ISO Speed,
Focal
>|| Length or whatever). Then just put your cursor to the
immdiate
>|| right of the two ## signs and backspace twice to remove them.
>|| That should allow that info (as long as it's in your image
from
>|| your camera) to be printed on the image when you run the
script.
>|| It works fine for me in PSP9.
>|| Regards,
>|| JoeB
> AND on top of all that I found where the text size could be
made a bit
> smaller (8 vs 10) ALSO could edit out excess words in the EXIF
data
> describing the settings.
> Works great!
> Rose
>
Yes, spacing and indenting is vital to the script code. Whenever
you edit anything, always make sure you place your cursor in the
correct position for deletion. In this case, for example, you
could have placed the cursor at the immediate left of the ##
signs and pressed Delete twice instead and achieved the same
result. When replacing a word, place the cursor at the beginning
of the word and press delete just enough times to remove the
letters and then type in the new ones. Don't remove spaces and
indents.
Glad I was able to help, and I thought you'd find the size and
color coding yourself considering you had done so with the other
script. Have fun!
Regards,
JoeB
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|