file_creationdate

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

file_creationdate

miran-4

I've tried to use the file_creationdate tag in different ways, but no success.

after transferring files from server A to my webserver with the ftp tags, the creation date of the file is modified, I get the date and time when the files are written to the webserver.

the original creation date is needed in the rest of this project.

could anyone explain how to use the file_creation tag ? or retrieve that date otherwise ?

config: osx 10.3.8 / lasso 8.04

thnx,
miran


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

Bruce Knox
>Hi Miran


File_CreationDate only works on windowz. I had a project where I was
going to list a directory with File_ModDate and then copy the files
to a working directory where they would be updated, etc. But for
other reasons needed a dbase so I now just stuff the date the file
first appears in to that.

HTH

Bruce



--
Bruce Knox
31 St Stephen's Square
Norwich
Norfolk
NR1 3SS

Tel 01603 - 615466
Fax 01603 - 444552

--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

miran-4
In reply to this post by miran-4
thanks, but I really need the date the file was created.

is there a possibility to read the exif data of jpg's with lasso ?
the original creation date of a jpg file is stored in the exif data

miran



On donderdag, 2 juni 2005 16:24, Bruce Knox <[hidden email]> wrote:

>>Hi Miran
>
>
>File_CreationDate only works on windowz. I had a project where I was
>going to list a directory with File_ModDate and then copy the files
>to a working directory where they would be updated, etc. But for
>other reasons needed a dbase so I now just stuff the date the file
>first appears in to that.
>
>HTH
>
>Bruce
>
>
>
>--
>Bruce Knox
>31 St Stephen's Square
>Norwich
>Norfolk
>NR1 3SS
>
>Tel 01603 - 615466
>Fax 01603 - 444552
>
>--
>------------------------------
>Lasso Support: http://support.omnipilot.com/
>Search the list archives: http://www.listsearch.com/lassotalk.lasso
>Manage your list subscription:  
>http://www.listsearch.com/lassotalk.lasso?manage
>


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

Jeremy Hahn
In reply to this post by miran-4
Sure, you can pass a raw command to imagemagick. Here are a couple of links
that should get you started on your way.


http://ldml.omnipilot.com/LDMLReference.0.LassoApp?tab1=detail&tab2=tag&deta
il_mode=search&detail_skiprecords=13&detail_tag=1187

http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html

http://studio.imagemagick.org/pipermail/magick-users/2004-March/012315.html

HTH,
------------------------------------------
Jeremy Hahn
OmniPilot Software
Product Specialist
[hidden email]
Tel: 954-874-3151
Toll Free: 800-678-9958 x151
 
 

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of miran
> Sent: Thursday, June 02, 2005 10:42 AM
> To: [hidden email]
> Subject: Re: file_creationdate
>
> thanks, but I really need the date the file was created.
>
> is there a possibility to read the exif data of jpg's with lasso ?
> the original creation date of a jpg file is stored in the exif data
>
> miran
>
>
>
> On donderdag, 2 juni 2005 16:24, Bruce Knox <[hidden email]>
> wrote:
> >>Hi Miran
> >
> >
> >File_CreationDate only works on windowz. I had a project where I was
> >going to list a directory with File_ModDate and then copy the files
> >to a working directory where they would be updated, etc. But for
> >other reasons needed a dbase so I now just stuff the date the file
> >first appears in to that.
> >
> >HTH
> >
> >Bruce
> >
> >
> >
> >--
> >Bruce Knox
> >31 St Stephen's Square
> >Norwich
> >Norfolk
> >NR1 3SS
> >
> >Tel 01603 - 615466
> >Fax 01603 - 444552
> >
> >--
> >------------------------------
> >Lasso Support: http://support.omnipilot.com/
> >Search the list archives: http://www.listsearch.com/lassotalk.lasso
> >Manage your list subscription:
> >http://www.listsearch.com/lassotalk.lasso?manage
> >
>
>
> --
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription:
> http://www.listsearch.com/lassotalk.lasso?manage



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

miran-4
In reply to this post by miran-4
thanks for the links, but I don't quite understand how I should use this ..
could you give an example how to retrieve the file date of an image

miran


On donderdag, 2 juni 2005 17:58, Jeremy Hahn <[hidden email]> wrote:

>Sure, you can pass a raw command to imagemagick. Here are a couple of links
>that should get you started on your way.
>
>
>http://ldml.omnipilot.com/LDMLReference.0.LassoApp?tab1=detail&tab2=tag&deta
>il_mode=search&detail_skiprecords=13&detail_tag=1187
>
>http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html
>
>http://studio.imagemagick.org/pipermail/magick-users/2004-March/012315.html
>
>HTH,
>------------------------------------------
>Jeremy Hahn
>OmniPilot Software
>Product Specialist
>[hidden email]
>Tel: 954-874-3151
>Toll Free: 800-678-9958 x151
>
>



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

Karim Dahdah
In reply to this post by miran-4
Miran,

With Lasso you cannot get the EXIF information... , because the tag
doesn't understand the 'identify'-method wich is used by ImageMagick to
get the EXIF information.

But,
you can use the PassThru-library from Steffan A. Cline
([hidden email]) and make a command prompt action.
See for the functions on
http://www.imagemagick.com/www/command-line-options.html?#format


Also, we discussed this earlier, see the following thread:
http://www.listsearch.com/lassotalk.lasso?id=146490


Greetz,

Karim Dahdah
-----------------------
-ASP- & Lasso Developer
www.doran.be





miran wrote:

> thanks, but I really need the date the file was created.
>
> is there a possibility to read the exif data of jpg's with lasso ?
> the original creation date of a jpg file is stored in the exif data
>
> miran
>
>
>
> On donderdag, 2 juni 2005 16:24, Bruce Knox <[hidden email]> wrote:
>
>>>Hi Miran
>>
>>
>>File_CreationDate only works on windowz. I had a project where I was
>>going to list a directory with File_ModDate and then copy the files
>>to a working directory where they would be updated, etc. But for
>>other reasons needed a dbase so I now just stuff the date the file
>>first appears in to that.
>>
>>HTH
>>
>>Bruce
>>
>>
>>
>>--
>>Bruce Knox
>>31 St Stephen's Square
>>Norwich
>>Norfolk
>>NR1 3SS
>>
>>Tel 01603 - 615466
>>Fax 01603 - 444552
>>
>>--
>>------------------------------
>>Lasso Support: http://support.omnipilot.com/
>>Search the list archives: http://www.listsearch.com/lassotalk.lasso
>>Manage your list subscription:  
>>http://www.listsearch.com/lassotalk.lasso?manage
>>
>
>
>


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

Jeremy Hahn
In reply to this post by miran-4
Hello Miran,

   I wrote this tag that should solve your EXIF DateTime issue. To make this
work, you will want to upgrade to the new version of Lasso Professional
(8.0.5).

<?LassoScript

define_tag( 'GetEXIFDateTime', -required='ImagePath' );

   local( 'TheImage' = image( #ImagePath ) );
   local( 'ImageDescription' = #TheImage->describe );
   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
                                             -find = #DateTimeRegExp
                                            )
        );
       
   if( #ArrDateTime->size );
   
       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim & );
   else;
   
       return( false );
   /if;

/define_tag;

// Calls the tag.
GetEXIFDateTime( 'OmniPilot.jpg' );  
?>

HTH,
------------------------------------------
Jeremy Hahn
OmniPilot Software
Product Specialist
[hidden email]
Tel: 954-874-3151
Toll Free: 800-678-9958 x151
 
 

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Karim Dahdah
> Sent: Friday, June 03, 2005 5:25 AM
> To: [hidden email]
> Subject: Re: file_creationdate
>
> Miran,
>
> With Lasso you cannot get the EXIF information... , because the tag
> doesn't understand the 'identify'-method wich is used by ImageMagick to
> get the EXIF information.
>
> But,
> you can use the PassThru-library from Steffan A. Cline
> ([hidden email]) and make a command prompt action.
> See for the functions on
> http://www.imagemagick.com/www/command-line-options.html?#format
>
>
> Also, we discussed this earlier, see the following thread:
> http://www.listsearch.com/lassotalk.lasso?id=146490
>
>
> Greetz,
>
> Karim Dahdah
> -----------------------
> -ASP- & Lasso Developer
> www.doran.be
>
>
>
>
>
> miran wrote:
> > thanks, but I really need the date the file was created.
> >
> > is there a possibility to read the exif data of jpg's with lasso ?
> > the original creation date of a jpg file is stored in the exif data
> >
> > miran
> >
> >
> >
> > On donderdag, 2 juni 2005 16:24, Bruce Knox <[hidden email]>
> wrote:
> >
> >>>Hi Miran
> >>
> >>
> >>File_CreationDate only works on windowz. I had a project where I was
> >>going to list a directory with File_ModDate and then copy the files
> >>to a working directory where they would be updated, etc. But for
> >>other reasons needed a dbase so I now just stuff the date the file
> >>first appears in to that.
> >>
> >>HTH
> >>
> >>Bruce
> >>
> >>
> >>
> >>--
> >>Bruce Knox
> >>31 St Stephen's Square
> >>Norwich
> >>Norfolk
> >>NR1 3SS
> >>
> >>Tel 01603 - 615466
> >>Fax 01603 - 444552
> >>
> >>--
> >>------------------------------
> >>Lasso Support: http://support.omnipilot.com/
> >>Search the list archives: http://www.listsearch.com/lassotalk.lasso
> >>Manage your list subscription:
> >>http://www.listsearch.com/lassotalk.lasso?manage
> >>
> >
> >
> >
>
>
> --
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription:
> http://www.listsearch.com/lassotalk.lasso?manage



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

miran-4
In reply to this post by miran-4
Hello Jeremy,

thank you very much.
I've tried your tag (first updated Lasso to 8.05), but I can't get it to work ...
all I get is 'false'
the exif data of the image is complete.

thanks for your help,
miran



On maandag, 6 juni 2005 19:35, Jeremy Hahn <[hidden email]> wrote:

>Hello Miran,
>
>   I wrote this tag that should solve your EXIF DateTime issue. To make this
>work, you will want to upgrade to the new version of Lasso Professional
>(8.0.5).
>
><?LassoScript
>
>define_tag( 'GetEXIFDateTime', -required='ImagePath' );
>
>   local( 'TheImage' = image( #ImagePath ) );
>   local( 'ImageDescription' = #TheImage->describe );
>   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
>   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
>                                             -find = #DateTimeRegExp
>                                            )
>        );
>        
>   if( #ArrDateTime->size );
>  
>       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim & );
>   else;
>  
>       return( false );
>   /if;
>
>/define_tag;
>
>// Calls the tag.
>GetEXIFDateTime( 'OmniPilot.jpg' );  
>?>
>
>HTH,
>------------------------------------------
>Jeremy Hahn
>OmniPilot Software
>Product Specialist
>[hidden email]
>Tel: 954-874-3151
>Toll Free: 800-678-9958 x151
>
>



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

Jeremy Hahn
In reply to this post by miran-4
Hello Miran,

  It is possible that the .jpg file that you are using, does not contain the
DateTime EXIF data. You can verify this by doing image->description, and
take a look at the actual EXIF data returned. You can also use the
imagemagick binary to run the identify command to verify that the data
exists.

You can do something like this to catch the error so that "false" does not
print out to the screen.

if( !GetEXIFDateTime( 'MyImage.jpg' ) );

    'The DateTime could not be located within the EXIF data for
MyImage.jpg';
/if;

Try to create a new test image within photoshop or fireworks. They are
almost sure to create the DateTime value that you are looking for.

Make it a great day!
------------------------------------------
Jeremy Hahn
OmniPilot Software
Product Specialist
[hidden email]
Tel: 954-874-3151
Toll Free: 800-678-9958 x151
 
 

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of miran
> Sent: Monday, June 06, 2005 5:41 PM
> To: [hidden email]
> Subject: Re: file_creationdate
>
> Hello Jeremy,
>
> thank you very much.
> I've tried your tag (first updated Lasso to 8.05), but I can't get it to
> work ...
> all I get is 'false'
> the exif data of the image is complete.
>
> thanks for your help,
> miran
>
>
>
> On maandag, 6 juni 2005 19:35, Jeremy Hahn <[hidden email]> wrote:
> >Hello Miran,
> >
> >   I wrote this tag that should solve your EXIF DateTime issue. To make
> this
> >work, you will want to upgrade to the new version of Lasso Professional
> >(8.0.5).
> >
> ><?LassoScript
> >
> >define_tag( 'GetEXIFDateTime', -required='ImagePath' );
> >
> >   local( 'TheImage' = image( #ImagePath ) );
> >   local( 'ImageDescription' = #TheImage->describe );
> >   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
> >   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
> >                                             -find = #DateTimeRegExp
> >                                            )
> >        );
> >
> >   if( #ArrDateTime->size );
> >
> >       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim & );
> >   else;
> >
> >       return( false );
> >   /if;
> >
> >/define_tag;
> >
> >// Calls the tag.
> >GetEXIFDateTime( 'OmniPilot.jpg' );
> >?>
> >
> >HTH,
> >------------------------------------------
> >Jeremy Hahn
> >OmniPilot Software
> >Product Specialist
> >[hidden email]
> >Tel: 954-874-3151
> >Toll Free: 800-678-9958 x151
> >
> >
>
>
>
> --
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription:
> http://www.listsearch.com/lassotalk.lasso?manage



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

miran-4
In reply to this post by miran-4
Jeremy,

I verified my example image with: [$myimage->describe] I get among the other exif data
Date Time: 2004:01:20 10:38:16
also newly created images (using photoshop cs or graphic converter) give me the date time with the describe tag, but your GetEXIFDateTime tag still gives me 'false'

if I test the size of #ArrDateTime->size I get 0
I am not that good with regex to find the error why your tag gives me 'false'.
I appreciate your help on this.

miran
 

On dinsdag, 7 juni 2005 15:11, Jeremy Hahn <[hidden email]> wrote:

>Hello Miran,
>
>  It is possible that the .jpg file that you are using, does not contain the
>DateTime EXIF data. You can verify this by doing image->description, and
>take a look at the actual EXIF data returned. You can also use the
>imagemagick binary to run the identify command to verify that the data
>exists.
>
>You can do something like this to catch the error so that "false" does not
>print out to the screen.
>
>if( !GetEXIFDateTime( 'MyImage.jpg' ) );
>
>    'The DateTime could not be located within the EXIF data for
>MyImage.jpg';
>/if;
>
>Try to create a new test image within photoshop or fireworks. They are
>almost sure to create the DateTime value that you are looking
>for.
>
>Make it a great day!
>------------------------------------------
>Jeremy Hahn
>OmniPilot Software
>Product Specialist
>[hidden email]
>Tel: 954-874-3151
>Toll Free: 800-678-9958 x151
>
>
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On
>> Behalf Of miran
>> Sent: Monday, June 06, 2005 5:41 PM
>> To: [hidden email]
>> Subject: Re: file_creationdate
>>
>> Hello Jeremy,
>>
>> thank you very much.
>> I've tried your tag (first updated Lasso to 8.05), but I can't get it to
>> work ...
>> all I get is 'false'
>> the exif data of the image is complete.
>>
>> thanks for your help,
>> miran
>>
>>
>>
>> On maandag, 6 juni 2005 19:35, Jeremy Hahn <[hidden email]> wrote:
>> >Hello Miran,
>> >
>> >   I wrote this tag that should solve your EXIF DateTime issue. To make
>> this
>> >work, you will want to upgrade to the new version of Lasso Professional
>> >(8.0.5).
>> >
>> ><?LassoScript
>> >
>> >define_tag( 'GetEXIFDateTime', -required='ImagePath' );
>> >
>> >   local( 'TheImage' = image( #ImagePath ) );
>> >   local( 'ImageDescription' = #TheImage->describe );
>> >   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
>> >   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
>> >                                             -find = #DateTimeRegExp
>> >                                            )
>> >        );
>> >
>> >   if( #ArrDateTime->size );
>> >
>> >       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim & );
>> >   else;
>> >
>> >       return( false );
>> >   /if;
>> >
>> >/define_tag;
>> >
>> >// Calls the tag.
>> >GetEXIFDateTime( 'OmniPilot.jpg' );
>> >?>
>> >
>> >HTH,
>> >------------------------------------------
>> >Jeremy Hahn
>> >OmniPilot Software
>> >Product Specialist
>> >[hidden email]
>> >Tel: 954-874-3151
>> >Toll Free: 800-678-9958 x151
>> >
>> >
>>
>>
>>
>> --
>> ------------------------------
>> Lasso Support: http://support.omnipilot.com/
>> Search the list archives: http://www.listsearch.com/lassotalk.lasso
>> Manage your list subscription:
>> http://www.listsearch.com/lassotalk.lasso?manage
>
>
>
>--
>------------------------------
>Lasso Support: http://support.omnipilot.com/
>Search the list archives: http://www.listsearch.com/lassotalk.lasso
>Manage your list subscription:  
>http://www.listsearch.com/lassotalk.lasso?manage
>


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

Jeremy Hahn
In reply to this post by miran-4
Please contact me off list, and we can resolve this. I tested the tag on MAC
OS X v10.3.9 using Lasso v8.0.5 and it worked. If the issue is within the
logic, I will post the update to the list. Please include your OS type and
version, as well as an attachment of the test image that you are using.

Talk to ya soon! :)
------------------------------------------
Jeremy Hahn
OmniPilot Software
Product Specialist
[hidden email]
Tel: 954-874-3151
Toll Free: 800-678-9958 x151
 
 

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of miran
> Sent: Tuesday, June 07, 2005 9:39 AM
> To: [hidden email]
> Subject: Re: file_creationdate
>
> Jeremy,
>
> I verified my example image with: [$myimage->describe] I get among the
> other exif data
> Date Time: 2004:01:20 10:38:16
> also newly created images (using photoshop cs or graphic converter) give
> me the date time with the describe tag, but your GetEXIFDateTime tag still
> gives me 'false'
>
> if I test the size of #ArrDateTime->size I get 0
> I am not that good with regex to find the error why your tag gives me
> 'false'.
> I appreciate your help on this.
>
> miran
>
>
> On dinsdag, 7 juni 2005 15:11, Jeremy Hahn <[hidden email]> wrote:
> >Hello Miran,
> >
> >  It is possible that the .jpg file that you are using, does not contain
> the
> >DateTime EXIF data. You can verify this by doing image->description, and
> >take a look at the actual EXIF data returned. You can also use the
> >imagemagick binary to run the identify command to verify that the data
> >exists.
> >
> >You can do something like this to catch the error so that "false" does
> not
> >print out to the screen.
> >
> >if( !GetEXIFDateTime( 'MyImage.jpg' ) );
> >
> >    'The DateTime could not be located within the EXIF data for
> >MyImage.jpg';
> >/if;
> >
> >Try to create a new test image within photoshop or fireworks. They are
> >almost sure to create the DateTime value that you are looking
> >for.
> >
> >Make it a great day!
> >------------------------------------------
> >Jeremy Hahn
> >OmniPilot Software
> >Product Specialist
> >[hidden email]
> >Tel: 954-874-3151
> >Toll Free: 800-678-9958 x151
> >
> >
> >> -----Original Message-----
> >> From: [hidden email] [mailto:[hidden email]] On
> >> Behalf Of miran
> >> Sent: Monday, June 06, 2005 5:41 PM
> >> To: [hidden email]
> >> Subject: Re: file_creationdate
> >>
> >> Hello Jeremy,
> >>
> >> thank you very much.
> >> I've tried your tag (first updated Lasso to 8.05), but I can't get it
> to
> >> work ...
> >> all I get is 'false'
> >> the exif data of the image is complete.
> >>
> >> thanks for your help,
> >> miran
> >>
> >>
> >>
> >> On maandag, 6 juni 2005 19:35, Jeremy Hahn <[hidden email]> wrote:
> >> >Hello Miran,
> >> >
> >> >   I wrote this tag that should solve your EXIF DateTime issue. To
> make
> >> this
> >> >work, you will want to upgrade to the new version of Lasso
> Professional
> >> >(8.0.5).
> >> >
> >> ><?LassoScript
> >> >
> >> >define_tag( 'GetEXIFDateTime', -required='ImagePath' );
> >> >
> >> >   local( 'TheImage' = image( #ImagePath ) );
> >> >   local( 'ImageDescription' = #TheImage->describe );
> >> >   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
> >> >   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
> >> >                                             -find = #DateTimeRegExp
> >> >                                            )
> >> >        );
> >> >
> >> >   if( #ArrDateTime->size );
> >> >
> >> >       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim &
> );
> >> >   else;
> >> >
> >> >       return( false );
> >> >   /if;
> >> >
> >> >/define_tag;
> >> >
> >> >// Calls the tag.
> >> >GetEXIFDateTime( 'OmniPilot.jpg' );
> >> >?>
> >> >
> >> >HTH,
> >> >------------------------------------------
> >> >Jeremy Hahn
> >> >OmniPilot Software
> >> >Product Specialist
> >> >[hidden email]
> >> >Tel: 954-874-3151
> >> >Toll Free: 800-678-9958 x151
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> ------------------------------
> >> Lasso Support: http://support.omnipilot.com/
> >> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> >> Manage your list subscription:
> >> http://www.listsearch.com/lassotalk.lasso?manage
> >
> >
> >
> >--
> >------------------------------
> >Lasso Support: http://support.omnipilot.com/
> >Search the list archives: http://www.listsearch.com/lassotalk.lasso
> >Manage your list subscription:
> >http://www.listsearch.com/lassotalk.lasso?manage
> >
>
>
> --
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription:
> http://www.listsearch.com/lassotalk.lasso?manage



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

Jeremy Hahn
In reply to this post by miran-4
Interesting... for some reason during my initial testing, the tag worked,
however, during testing with your image, the Lasso data type for
#ImageDescription was of bytes type, not of string type, which resulted in
the regular expression failing. Im not really sure what caused that, but
here is the fix.

define_tag( 'GetEXIFDateTime', -required='ImagePath' );

   local( 'TheImage' = image( #ImagePath ) );
   local( 'ImageDescription' = #TheImage->describe->exportString( 'utf-8' )
);
   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
                                             -find = #DateTimeRegExp
                                            )
        );

       
   if( #ArrDateTime->size );
   
       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim & );
   else;
   
       return( false );
   /if;

/define_tag;

Now, git to work! :-P
------------------------------------------
Jeremy Hahn
OmniPilot Software
Product Specialist
[hidden email]
Tel: 954-874-3151
Toll Free: 800-678-9958 x151
 
 

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On
> Behalf Of Jeremy Hahn
> Sent: Tuesday, June 07, 2005 9:11 AM
> To: [hidden email]
> Subject: Re: file_creationdate
>
> Hello Miran,
>
>   It is possible that the .jpg file that you are using, does not contain
> the
> DateTime EXIF data. You can verify this by doing image->description, and
> take a look at the actual EXIF data returned. You can also use the
> imagemagick binary to run the identify command to verify that the data
> exists.
>
> You can do something like this to catch the error so that "false" does not
> print out to the screen.
>
> if( !GetEXIFDateTime( 'MyImage.jpg' ) );
>
>     'The DateTime could not be located within the EXIF data for
> MyImage.jpg';
> /if;
>
> Try to create a new test image within photoshop or fireworks. They are
> almost sure to create the DateTime value that you are looking for.
>
> Make it a great day!
> ------------------------------------------
> Jeremy Hahn
> OmniPilot Software
> Product Specialist
> [hidden email]
> Tel: 954-874-3151
> Toll Free: 800-678-9958 x151
>
>
> > -----Original Message-----
> > From: [hidden email] [mailto:[hidden email]] On
> > Behalf Of miran
> > Sent: Monday, June 06, 2005 5:41 PM
> > To: [hidden email]
> > Subject: Re: file_creationdate
> >
> > Hello Jeremy,
> >
> > thank you very much.
> > I've tried your tag (first updated Lasso to 8.05), but I can't get it to
> > work ...
> > all I get is 'false'
> > the exif data of the image is complete.
> >
> > thanks for your help,
> > miran
> >
> >
> >
> > On maandag, 6 juni 2005 19:35, Jeremy Hahn <[hidden email]> wrote:
> > >Hello Miran,
> > >
> > >   I wrote this tag that should solve your EXIF DateTime issue. To make
> > this
> > >work, you will want to upgrade to the new version of Lasso Professional
> > >(8.0.5).
> > >
> > ><?LassoScript
> > >
> > >define_tag( 'GetEXIFDateTime', -required='ImagePath' );
> > >
> > >   local( 'TheImage' = image( #ImagePath ) );
> > >   local( 'ImageDescription' = #TheImage->describe );
> > >   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
> > >   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
> > >                                             -find = #DateTimeRegExp
> > >                                            )
> > >        );
> > >
> > >   if( #ArrDateTime->size );
> > >
> > >       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim & );
> > >   else;
> > >
> > >       return( false );
> > >   /if;
> > >
> > >/define_tag;
> > >
> > >// Calls the tag.
> > >GetEXIFDateTime( 'OmniPilot.jpg' );
> > >?>
> > >
> > >HTH,
> > >------------------------------------------
> > >Jeremy Hahn
> > >OmniPilot Software
> > >Product Specialist
> > >[hidden email]
> > >Tel: 954-874-3151
> > >Toll Free: 800-678-9958 x151
> > >
> > >
> >
> >
> >
> > --
> > ------------------------------
> > Lasso Support: http://support.omnipilot.com/
> > Search the list archives: http://www.listsearch.com/lassotalk.lasso
> > Manage your list subscription:
> > http://www.listsearch.com/lassotalk.lasso?manage
>
>
>
> --
> ------------------------------
> Lasso Support: http://support.omnipilot.com/
> Search the list archives: http://www.listsearch.com/lassotalk.lasso
> Manage your list subscription:
> http://www.listsearch.com/lassotalk.lasso?manage



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: file_creationdate

miran-4
In reply to this post by miran-4
thanks a lot, it works great now !

miran


On dinsdag, 7 juni 2005 22:58, Jeremy Hahn <[hidden email]> wrote:

>Interesting... for some reason during my initial testing, the tag worked,
>however, during testing with your image, the Lasso data type for
>#ImageDescription was of bytes type, not of string type, which resulted in
>the regular expression failing. Im not really sure what caused that, but
>here is the fix.
>
>define_tag( 'GetEXIFDateTime', -required='ImagePath' );
>
>   local( 'TheImage' = image( #ImagePath ) );
>   local( 'ImageDescription' = #TheImage->describe->exportString( 'utf-8' )
>);
>   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
>   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
>                                             -find = #DateTimeRegExp
>                                            )
>        );
>
>        
>   if( #ArrDateTime->size );
>  
>       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim & );
>   else;
>  
>       return( false );
>   /if;
>
>/define_tag;
>
>Now, git to work! :-P
>------------------------------------------
>Jeremy Hahn
>OmniPilot Software
>Product Specialist
>[hidden email]
>Tel: 954-874-3151
>Toll Free: 800-678-9958 x151
>
>
>
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On
>> Behalf Of Jeremy Hahn
>> Sent: Tuesday, June 07, 2005 9:11 AM
>> To: [hidden email]
>> Subject: Re: file_creationdate
>>
>> Hello Miran,
>>
>>   It is possible that the .jpg file that you are using, does not contain
>> the
>> DateTime EXIF data. You can verify this by doing image->description, and
>> take a look at the actual EXIF data returned. You can also use the
>> imagemagick binary to run the identify command to verify that the data
>> exists.
>>
>> You can do something like this to catch the error so that "false" does not
>> print out to the screen.
>>
>> if( !GetEXIFDateTime( 'MyImage.jpg' ) );
>>
>>     'The DateTime could not be located within the EXIF data for
>> MyImage.jpg';
>> /if;
>>
>> Try to create a new test image within photoshop or fireworks. They are
>> almost sure to create the DateTime value that you are looking for.
>>
>> Make it a great day!
>> ------------------------------------------
>> Jeremy Hahn
>> OmniPilot Software
>> Product Specialist
>> [hidden email]
>> Tel: 954-874-3151
>> Toll Free: 800-678-9958 x151
>>
>>
>> > -----Original Message-----
>> > From: [hidden email] [mailto:[hidden email]] On
>> > Behalf Of miran
>> > Sent: Monday, June 06, 2005 5:41 PM
>> > To: [hidden email]
>> > Subject: Re: file_creationdate
>> >
>> > Hello Jeremy,
>> >
>> > thank you very much.
>> > I've tried your tag (first updated Lasso to 8.05), but I can't get it to
>> > work ...
>> > all I get is 'false'
>> > the exif data of the image is complete.
>> >
>> > thanks for your help,
>> > miran
>> >
>> >
>> >
>> > On maandag, 6 juni 2005 19:35, Jeremy Hahn <[hidden email]> wrote:
>> > >Hello Miran,
>> > >
>> > >   I wrote this tag that should solve your EXIF DateTime issue. To make
>> > this
>> > >work, you will want to upgrade to the new version of Lasso Professional
>> > >(8.0.5).
>> > >
>> > ><?LassoScript
>> > >
>> > >define_tag( 'GetEXIFDateTime', -required='ImagePath' );
>> > >
>> > >   local( 'TheImage' = image( #ImagePath ) );
>> > >   local( 'ImageDescription' = #TheImage->describe );
>> > >   local( 'DateTimeRegExp' = '(?msiU)^\\s*Date Time:(.*)\\r?\\n' );
>> > >   local( 'ArrDateTime' = string_findRegExp( #ImageDescription,
>> > >                                             -find = #DateTimeRegExp
>> > >                                            )
>> > >        );
>> > >
>> > >   if( #ArrDateTime->size );
>> > >
>> > >       return( #ArrDateTime->get( 2 )->replace( '.', '' ) & ->trim & );
>> > >   else;
>> > >
>> > >       return( false );
>> > >   /if;
>> > >
>> > >/define_tag;
>> > >
>> > >// Calls the tag.
>> > >GetEXIFDateTime( 'OmniPilot.jpg' );
>> > >?>
>> > >
>> > >HTH,
>> > >------------------------------------------
>> > >Jeremy Hahn
>> > >OmniPilot Software
>> > >Product Specialist
>> > >[hidden email]
>> > >Tel: 954-874-3151
>> > >Toll Free: 800-678-9958 x151
>> > >
>> > >
>> >
>> >
>> >
>> > --
>> > ------------------------------
>> > Lasso Support: http://support.omnipilot.com/
>> > Search the list archives: http://www.listsearch.com/lassotalk.lasso
>> > Manage your list subscription:
>> > http://www.listsearch.com/lassotalk.lasso?manage
>>
>>
>>
>> --
>> ------------------------------
>> Lasso Support: http://support.omnipilot.com/
>> Search the list archives: http://www.listsearch.com/lassotalk.lasso
>> Manage your list subscription:
>> http://www.listsearch.com/lassotalk.lasso?manage
>
>
>
>--
>------------------------------
>Lasso Support: http://support.omnipilot.com/
>Search the list archives: http://www.listsearch.com/lassotalk.lasso
>Manage your list subscription:  
>http://www.listsearch.com/lassotalk.lasso?manage
>


--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage