[ansel] Updated patch for EXIF code

Heath S. Hendrickson heath at outerspaceconsultants.com
Thu Jan 22 10:27:32 PST 2004


Err, one note, since my system has PHP with exif support, I have only 
been able to test that it work in that case.  Can someone without native 
exif support test and let me know how it behaves?

h

Heath S. Hendrickson wrote:

> Okay, here are the updated patches/files for the new EXIF code.  The 
> changes were as follows:
>
> 1) moved existing Exif.php to Exifer.php
> 2) created new Exif.php that contains functions:
>       get_exif_data() - determines if native function is present and 
> uses it, otherwise uses Exifer code
>       convert_exifer_to_native() - converts the Exifer output array to 
> something similar to the native function
>       convert_exif_data() - converts EXIF data into human readable format
> 3) modified existing template file image/exif.inc to perform mapping 
> of EXIF field names to friendly names
> 4) created new template file image/exif-view.inc that is used by the 
> stand-alone EXIF viewing call, includes image/exif.inc
> 5) modified existing template file view/exif-image.inc to include new 
> image/exif.inc file for field mappings
> 6) modified image.php to call the new get_exif_data() function and 
> include new template image/exif-view.php instead of image/exif.inc
> 7) modified view.php to call new get_exif_data() function
>
> I've attached a diff for the modified files and the new files 
> (Exifer.php, exif-view.php) all in a zip file to keep it under the 40k 
> limit.
>
> Edited files:
>  image.php
>  view.php
>  lib/Exif.php
>  templates/view/exif-image.inc
>  templates/image/exif.inc
> New files:
>  lib/Exifer/php (rename of previous Exif.php)
>  templates/image/exif-view.inc
>
> Thanks,
> heath
>
>------------------------------------------------------------------------
>
>
>  
>



More information about the ansel mailing list