|
| EXIF makernotes and scripting |
 |
Wed, 19 Mar 2008 12:57:31 +100 |
Does anyone know if the makernotes from the image exif information are
stored as variables that can be called from scripts??
The script that I am writing grabs the ExifModel, ExifFNumber and
ExifISOSpeed and will print them on the image. These work fine.
The problem comes with the ISO as Canon and Nikon store this in a
makernote field. So I would like to add some brains to the script along
the lines of
<code>
if ImageInfo['ExifMake'] = 'Canon':
ISO = ImageInfo['_makernoteiso_']
elif ImageInfo['ExifMake'] = 'Nikon':
ISO = ImageInfo['_makernoteiso_']
elif ImageInfo['ExifMake'] = 'Pentax':
ISO = ImageInfo[ExifISOSpeed']
else:
ISO = ''
</code>
to help this problem out. Cannot for the life of me work out how to get
the info though.
|
| Post Reply
|
| Re: EXIF makernotes and scripting |
 |
Wed, 19 Mar 2008 14:28:21 -040 |
As far as I know, the EXIF fields stored in PSP are all listed when you run
the ImageInfo command. I don't see any called _makernoteiso_, so I'm
thinking perhaps it's not saved - I could be wrong. I'll raise this
question in the C-Tech forum, Simon, and let you know what I learn. Suz
Simon Wingett wrote:
> Does anyone know if the makernotes from the image exif information are
> stored as variables that can be called from scripts??
>
> The script that I am writing grabs the ExifModel, ExifFNumber and
> ExifISOSpeed and will print them on the image. These work fine.
>
> The problem comes with the ISO as Canon and Nikon store this in a
> makernote field. So I would like to add some brains to the script
> along the lines of
>
> <code>
> if ImageInfo['ExifMake'] = 'Canon':
> ISO = ImageInfo['_makernoteiso_']
>
> elif ImageInfo['ExifMake'] = 'Nikon':
> ISO = ImageInfo['_makernoteiso_']
>
> elif ImageInfo['ExifMake'] = 'Pentax':
> ISO = ImageInfo[ExifISOSpeed']
>
> else:
> ISO = ''
> </code>
>
> to help this problem out. Cannot for the life of me work out how to
> get the info though.
|
| Post Reply
|
| Re: EXIF makernotes and scripting |
 |
Wed, 19 Mar 2008 20:31:21 -040 |
Will let you know if/when I hear something, Simon....! Suz
Simon Wingett wrote:
> Suz, That would be fantastic.... Am going mad trying to work this
> stuff out.
> Just to clarify a little what I typed earlier.... The term
> "_makernotesiso_" was used because I have no idea what it would
> actually be called.
> The term was more to make the point that the makers of Canon and Nikon
> cameras store their information in the makernotes area and that I
> don't know if they are callable.
>
> All the regular EXIF fields I get with this snippet...
>
> <code>
> ImageInfo = App.Do( Environment, 'ReturnImageInfo', {
> 'GeneralSettings': {
> 'Version': ((10,0,3),1)
> }
> })
> </code>
>
> then I print it out with
>
> <code>
> App.Do( Environment, 'TextEx', {
> 'Visibility': True,
> 'CreateAs': App.Constants.CreateAs.Vector,
>
> ..SNIP..
>
> 'Characters': ImageInfo['ExifModel'],
> 'Strings': None,
> 'TextTarget': (0,0,[3],True),
> 'PathTarget': None,
> 'GeneralSettings': {
> 'ExecutionMode': App.Constants.ExecutionMode.Default,
> 'AutoActionMode': App.Constants.AutoActionMode.Match,
> 'Version': ((10,0,3),1)
> }
> })
> </code>
>
>
> Thanks again
> Simon
>
> SuzShook wrote:
>> As far as I know, the EXIF fields stored in PSP are all listed when
>> you run the ImageInfo command. I don't see any called
>> _makernoteiso_, so I'm thinking perhaps it's not saved - I could be
>> wrong. I'll raise this question in the C-Tech forum, Simon, and let
>> you know what I learn. Suz Simon Wingett wrote:
>>> Does anyone know if the makernotes from the image exif information
>>> are stored as variables that can be called from scripts??
>>>
>>> The script that I am writing grabs the ExifModel, ExifFNumber and
>>> ExifISOSpeed and will print them on the image. These work fine.
>>>
>>> The problem comes with the ISO as Canon and Nikon store this in a
>>> makernote field. So I would like to add some brains to the script
>>> along the lines of
>>>
>>> <code>
>>> if ImageInfo['ExifMake'] = 'Canon':
>>> ISO = ImageInfo['_makernoteiso_']
>>>
>>> elif ImageInfo['ExifMake'] = 'Nikon':
>>> ISO = ImageInfo['_makernoteiso_']
>>>
>>> elif ImageInfo['ExifMake'] = 'Pentax':
>>> ISO = ImageInfo[ExifISOSpeed']
>>>
>>> else:
>>> ISO = ''
>>> </code>
>>>
>>> to help this problem out. Cannot for the life of me work out how
to
>>> get the info though.
|
| Post Reply
|
| Re: EXIF makernotes and scripting |
 |
Thu, 20 Mar 2008 08:56:13 -000 |
SuzShook wrote:
> Will let you know if/when I hear something, Simon....! Suz
>
> Simon Wingett wrote:
>> Suz, That would be fantastic.... Am going mad trying to work this
>> stuff out.
>> Just to clarify a little what I typed earlier.... The term
>> "_makernotesiso_" was used because I have no idea what it
would
>> actually be called.
>> The term was more to make the point that the makers of Canon and
>> Nikon cameras store their information in the makernotes area and
>> that I don't know if they are callable.
>>
>> All the regular EXIF fields I get with this snippet...
>>
>> <code>
>> ImageInfo = App.Do( Environment, 'ReturnImageInfo', {
>> 'GeneralSettings': {
>> 'Version': ((10,0,3),1)
>> }
>> })
>> </code>
>>
>> then I print it out with
>>
>> <code>
>> App.Do( Environment, 'TextEx', {
>> 'Visibility': True,
>> 'CreateAs': App.Constants.CreateAs.Vector,
>>
>> ..SNIP..
>>
>> 'Characters': ImageInfo['ExifModel'],
>> 'Strings': None,
>> 'TextTarget': (0,0,[3],True),
>> 'PathTarget': None,
>> 'GeneralSettings': {
>> 'ExecutionMode': App.Constants.ExecutionMode.Default,
>> 'AutoActionMode': App.Constants.AutoActionMode.Match,
>> 'Version': ((10,0,3),1)
>> }
>> })
>> </code>
>>
>>
>> Thanks again
>> Simon
>>
>> SuzShook wrote:
>>> As far as I know, the EXIF fields stored in PSP are all listed
when
>>> you run the ImageInfo command. I don't see any called
>>> _makernoteiso_, so I'm thinking perhaps it's not saved - I could
be
>>> wrong. I'll raise this question in the C-Tech forum, Simon, and
let
>>> you know what I learn. Suz Simon Wingett wrote:
>>>> Does anyone know if the makernotes from the image exif
information
>>>> are stored as variables that can be called from scripts??
>>>>
>>>> The script that I am writing grabs the ExifModel, ExifFNumber
and
>>>> ExifISOSpeed and will print them on the image. These work
fine.
>>>>
>>>> The problem comes with the ISO as Canon and Nikon store this in
a
>>>> makernote field. So I would like to add some brains to the
script
>>>> along the lines of
>>>>
>>>> <code>
>>>> if ImageInfo['ExifMake'] = 'Canon':
>>>> ISO = ImageInfo['_makernoteiso_']
>>>>
>>>> elif ImageInfo['ExifMake'] = 'Nikon':
>>>> ISO = ImageInfo['_makernoteiso_']
>>>>
>>>> elif ImageInfo['ExifMake'] = 'Pentax':
>>>> ISO = ImageInfo[ExifISOSpeed']
>>>>
>>>> else:
>>>> ISO = ''
>>>> </code>
>>>>
>>>> to help this problem out. Cannot for the life of me work out
how to
>>>> get the info though.
I remember some Canon users complaining that X2 lost there maker notes. I
didnt understand at the time as my Cameras details Where allways there So
Maybe they use exif for some none standerd Info
--
Trev
You can always tell a Yorkshire man,
But you can't tell him much.
|
| Post Reply
|
| Re: EXIF makernotes and scripting |
 |
Thu, 20 Mar 2008 09:36:20 +100 |
Suz, That would be fantastic.... Am going mad trying to work this stuff out.
Just to clarify a little what I typed earlier.... The term
"_makernotesiso_" was used because I have no idea what it would
actually
be called.
The term was more to make the point that the makers of Canon and Nikon
cameras store their information in the makernotes area and that I don't
know if they are callable.
All the regular EXIF fields I get with this snippet...
<code>
ImageInfo = App.Do( Environment, 'ReturnImageInfo', {
'GeneralSettings': {
'Version': ((10,0,3),1)
}
})
</code>
then I print it out with
<code>
App.Do( Environment, 'TextEx', {
'Visibility': True,
'CreateAs': App.Constants.CreateAs.Vector,
..SNIP..
'Characters': ImageInfo['ExifModel'],
'Strings': None,
'TextTarget': (0,0,[3],True),
'PathTarget': None,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Default,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((10,0,3),1)
}
})
</code>
Thanks again
Simon
SuzShook wrote:
> As far as I know, the EXIF fields stored in PSP are all listed when you run
> the ImageInfo command. I don't see any called _makernoteiso_, so I'm
> thinking perhaps it's not saved - I could be wrong. I'll raise this
> question in the C-Tech forum, Simon, and let you know what I learn. Suz
>
> Simon Wingett wrote:
>> Does anyone know if the makernotes from the image exif information are
>> stored as variables that can be called from scripts??
>>
>> The script that I am writing grabs the ExifModel, ExifFNumber and
>> ExifISOSpeed and will print them on the image. These work fine.
>>
>> The problem comes with the ISO as Canon and Nikon store this in a
>> makernote field. So I would like to add some brains to the script
>> along the lines of
>>
>> <code>
>> if ImageInfo['ExifMake'] = 'Canon':
>> ISO = ImageInfo['_makernoteiso_']
>>
>> elif ImageInfo['ExifMake'] = 'Nikon':
>> ISO = ImageInfo['_makernoteiso_']
>>
>> elif ImageInfo['ExifMake'] = 'Pentax':
>> ISO = ImageInfo[ExifISOSpeed']
>>
>> else:
>> ISO = ''
>> </code>
>>
>> to help this problem out. Cannot for the life of me work out how to
>> get the info though.
>
>
>
|
| Post Reply
|
|
|