Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

TFU Exif Reader
https://www.tinywebgallery.com/forum/viewtopic.php?f=13&t=2852
Page 1 of 1

Author:  tcarr170 [ 30. Dec 2010, 00:30 ]
Post subject:  TFU Exif Reader

Hi Michael,

There is a file named "tfu_exifReader.php" in my com_jfuploader/tfu/ folder which has some great code that I would like to use, but I don't know how to use this with JFU. Where are these functions called? I would like to capture some of this EXIF data but I don't know where it is being used.

I have added a MySQL INSERT query to my "db_plugin.php" file, so once I capture the data, I can insert it into my table. I was going to write some PHP code to capture image info (either by making a plugin, or by placing code directly into the tfu_upload file. But I found this tfu_exifReader.php file ... how can I use it to get some of this EXIF information to my table?

Thanks and please let me know if you need more clarification. :)

Tracy

----------------
- Joomla: 1.5.15
- JFU: 2.12.1 Professional Edition
- server: localhost

Author:  TinyWebGallery [ 30. Dec 2010, 11:03 ]
Post subject:  Re: TFU Exif Reader

Hi,

I actually use it to get the exif size if the normal one cannot be read.

look in get_exif_size in tfu_helper.php.

there you can simply use:

$er = new phpExifReader($filename);
$er->processFile();
$exif_info = $er->getImageInfo();

and then e.g. for the size:
$er->ImageInfo[TAG_EXIF_IMAGEWIDTH]

The constants can be found in the tfu_exifReader.php (or in the TWG configuration because there I use the most imporant ones.).

I stongly recommend to use a plugin. Because then you can easily update to a new version. Joomla 1.6 is coming soon - and JFU for it will come as well..

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/