Page 1 of 5

NV Exif Data

Posted: Sun Aug 03, 2008 1:07 am
by Extensions Robot
Modification name: NV Exif Data
Author: nickvergessen
Modification description: Shows the Exif-Data on images, which were uploaded as attachments.
Modification version: 1.2.1.1
Tested on phpBB version: 3.0.8

Download file: NV_exif_data_1_2_1_1.zip
File size: 92.63 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

NV Exif Data

Posted: Sun Aug 03, 2008 1:07 am
by A_Jelly_Doughnut
Modification validated/released

Notes:
Do not install this MOD unless you have PHP's EXIF extension installed on your server. You can find out whether you have this in the system tab of your Administration Control Panel.

NV Exif Data

Posted: Sun Aug 03, 2008 1:07 am
by nickvergessen
MOD-Title: NV Exif Data
MOD-Version: 1.2.0
MOD-Description
  • Shows the Exif-Data on images, which were uploaded as attachments.
MOD-Download: phpBB-Version: phpBB 3.0.4
phpBB-Languages: de, en
phpBB-Styles: prosilver, subsilver2
MOD-Demo:

Re: NV Exif Data

Posted: Mon Aug 04, 2008 7:00 am
by mikiwe
thanks a lot for this Mod!
It's working great on my Board!

I've been lookin for a Mod like this for a while,
so i really appreciate you're work!

Sincerely,
Michael

Re: NV Exif Data

Posted: Wed Aug 06, 2008 1:23 am
by Wookie1664
Works well, I've been waiting for this. No bugs found so far and a very simple, quick install.

Well done !

Wookie

Re: NV Exif Data

Posted: Wed Aug 06, 2008 8:12 am
by Dr.Death
Works fine !

Re: NV Exif Data

Posted: Wed Aug 06, 2008 7:56 pm
by tommekemc
nice mod, nothing for my forum, but I like your mods!

Re: NV Exif Data

Posted: Thu Aug 07, 2008 8:49 am
by Wookie1664
nickvergessen,

I would recommend one small change.


In exif_data.php

Find

Code: Select all

	'EXIF_FOCAL'				=> 'Focus',
Replace with

Code: Select all

	'EXIF_FOCAL'				=> 'Focal Length',
This is because focus is something entirely different than the focal length (in mm) that the photo was shot at.

Regards

Wookie

Re: NV Exif Data

Posted: Thu Aug 07, 2008 6:58 pm
by GoBieN
This is a very easy mod, and yet i can't seem to get it to work. :s

board: 3.0.2
mods: phpbb-seo, GYM rss/sitemaps, NV Gallery, stargate portal, phoogle map, disclaimer, integrated error, quick reply.

I followed the instructions, cleard template cache and general cache.
I changed the 2 suggestions from here in this topic (time and focal length).
But i see nothing when posting a topic with photo attachment.

This is what my admin CP says in php Info:
./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-apxs2=/usr/sbin/apxs'
exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.118.2.35 2005/03/05 18:30:47 rasmus Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
Test link here:
http://www.camino-tuning.be/opmerkingen ... 23687.html

Please advise ?

Re: NV Exif Data

Posted: Thu Aug 07, 2008 7:52 pm
by nickvergessen
your uploaded images seem to have no exif-data so it is not displayed.
you may try this file for example:
http://files.flying-bits.org/desktop_08_06_21.jpg

Re: NV Exif Data

Posted: Sat Aug 09, 2008 12:27 pm
by GoBieN
I downloaded the attachment from the test topic to my desktop and opend it with an image viewer.
Here is a screenshot of the EXIF data.
http://www.gobien.be/root/php/exif-foto-from-site.png

So i would disagree about the image not having EXIF info on it.

Re: NV Exif Data

Posted: Sat Aug 09, 2008 12:29 pm
by nickvergessen
You cleared your cache and refreshed your Template in the ACP?

Re: NV Exif Data

Posted: Sat Aug 09, 2008 12:37 pm
by GoBieN
I followed the instructions, cleared template cache and general cache.
Did it again just to be sure, still nothing.

Any more ideas ?

Re: NV Exif Data

Posted: Sat Aug 09, 2008 12:42 pm
by nickvergessen
you may just add an

Code: Select all

echo 'something';
right in the code of the php-part of the MOD, to see whether it's a template or php problem

Re: NV Exif Data

Posted: Sun Aug 10, 2008 11:04 am
by Wookie1664
Found a small bug, when a .png file was attached to a post I got the following error

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 927: exif_read_data(58_3edd3e8ef5ee9a500b2dc2b4da4682db) [function.exif-read-data]: File not supported
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3596: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3002)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3598: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3002)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3599: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3002)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3600: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3002)
Then this when a .gif was attached to a post.

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_content.php on line 927: exif_read_data(2_29e538faefdc3b51960903bdb81991a5) [function.exif-read-data]: File not supported
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3596: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3002)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3598: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3002)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3599: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3002)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3600: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3002)
If it helps, line 926-931 of functions_content.php

Code: Select all

					$download_link .= '&mode=view';
					$exif = exif_read_data($filename, 0, true);
					if (!empty($exif["EXIF"]))
					{
Wookie