This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > PainShop Pro Scripting > August 2007 > Exif script issue





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 issue
Catlady

2007-08-01, 6:20 pm

underprocessable
Joe Fromm

2007-08-01, 10:19 pm

I would guess that the issue is that the camera manufacturer is listed as
"Canon", and the camera model is listed as "Canon Eos 20d". The script puts
out the manufacturer and model of the camera, so you get it twice.

If you look at the EXIFCaptioning.PspScript file in a text editor like
notepad, you will see the following around 60 lines in:

# assemble the camera string by concatenating the camera make and model.
Some camera
# manufacturers have the barbaric practice of CAPITALIZING everything in
their make and model
# strings, so convert it to initial caps only for a more civilized
appearance
CaptionTextCamera = unicode(string.capwords( ImageInfo['ExifMake'] + ' '
+ ImageInfo[ 'ExifModel' ] ))

Replace the last line with:
CaptionTextCamera = unicode(string.capwords(ImageInfo[ 'ExifModel' ] ))

Be aware that white space is significant in Python. The existing line
starts with 4 spaces, and the line you put in must also start with 4
spaces - not 3, not 5, not a tab. Case also matters.



"Catlady" <I don't think so> wrote in message news:46af781f_2@cnews...
> As you can see ,it shows Canon Canon , how do I correct this to show only
> one Canon?
>
>



Catlady

2007-08-02, 6:21 pm

thank you very much Joe, that worked !
~Diane

"Joe Fromm" <jfromm-DieSpammersDie-@mn.rr.com> wrote in message
news:46afbcd0$1_1@cnews...
>I would guess that the issue is that the camera manufacturer is listed as
>"Canon", and the camera model is listed as "Canon Eos 20d". The script
>puts out the manufacturer and model of the camera, so you get it twice.
>
> If you look at the EXIFCaptioning.PspScript file in a text editor like
> notepad, you will see the following around 60 lines in:
>
> # assemble the camera string by concatenating the camera make and
> model. Some camera
> # manufacturers have the barbaric practice of CAPITALIZING everything
> in their make and model
> # strings, so convert it to initial caps only for a more civilized
> appearance
> CaptionTextCamera = unicode(string.capwords( ImageInfo['ExifMake'] + '
> ' + ImageInfo[ 'ExifModel' ] ))
>
> Replace the last line with:
> CaptionTextCamera = unicode(string.capwords(ImageInfo[ 'ExifModel' ] ))
>
> Be aware that white space is significant in Python. The existing line
> starts with 4 spaces, and the line you put in must also start with 4
> spaces - not 3, not 5, not a tab. Case also matters.
>
>
>
> "Catlady" <I don't think so> wrote in message news:46af781f_2@cnews...
>
>



Sponsored Links


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