Getting Exif running on Coppermine V1.1 & 1.2 Getting Exif running on Coppermine V1.1 & 1.2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Getting Exif running on Coppermine V1.1 & 1.2

Started by slash, November 27, 2003, 09:29:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

slash

hi

I ve had running coppermine 1.1 for about 3 Month.
On this version, i played a little bit with the scripts and i´ve installed successfully the exif function.
After upgrading to version 1.2 today (great job from the programmers)
without any problems, my exif isn´t running anymore.
An error occures from somehing like my php doesn´t support exif.
After a look in my php.ini, my php does support exif.
someone wrote in this board that exif can run either if exif is checked or not in the php.ini. okay......
I searched in my old scripts from version 1.1 how i get exif running. so I changed the same lines in the Version 1.2 and now, exif is working good.
I am runnung  coppermine on windows 2000 with php 4.2xxx
In the file: displayimage.php i changed the following lines near line 30
to:
//if ($CONFIG['read_exif_data'] && function_exists('exif_read_data')) {
include("include/exif_php.inc.php");

//} elseif ($CONFIG['read_exif_data']) {
//    cpg_die(CRITICAL_ERROR, 'PHP running on your server does not   support reading EXIF data in JPEG files, please turn this off on the config page', __FILE__, __LINE__);
//}

that means, the only thing I have done is to comment out a few lines.
I have to say, i have no plan from php :-)
but on version 1.1 I searched the internet for exif and I have found
some exif files I used instead of the originals:

php_exif.dll put it in php\extensions and system32
exif.php in the include dir
exif_php.inc.php in the include dir
i am not realy sure wich of the last 2 files are not the original coppermine files but after this, my exif is working well.

I know, the changings in the displayimage.php is a bad hack, but on my system, it works now.
If there is anybody intersting in these changed files  and the dll i will give a link for downloading these files.

//slash
//slash

Joachim Müller


mrpink200

i'm fed up trying to make exif appear .................. 5 hours trying in 1.1d  then in 1.2rc3


so, now i got a clean phpnuke 4.91 with coppermine 1.2 RC4 working... on my easyphp1.6 ..... but with no exif
i'd really like to have 1 zip file with all the necessary php file configured to make exif work.

i've tried the things in the last topic, but nothing appens.. and i have exif tag !!!!!!!!

can someone help ?????????????, pleeeeeeeeeeeeeeeeeeeeeeeeeez

Joachim Müller

maybe you'll want to take a look at the most recent dev version code (standalone only, no phpnuke integration yet): it features exif support (using Tarique's exif class), no matter if your server supports exif or not.
Warning: as it's dev code, it comes with absolutely no warranties or whatever, only use it at your own risk, without support and if you're comfortable with dev builds. Remember to backup everything you have before experimenting with it. Get it by web cvs: http://cvs.sourceforge.net/viewcvs.py/coppermine/devel/

GauGau