coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: poming on April 10, 2005, 10:56:37 AM

Title: exif not work make high loading
Post by: poming on April 10, 2005, 10:56:37 AM
Hi all,

I used coppermne for some periods without got any serious problem, however I get one now.

I can upload this pic successfully, http://www.uphoto.hk/albums/userpics/10001/kabobo-34.jpg,
however I cannot view it and it try to load for long time, I think there may be a looping,
I tried to solve myself, however I am not experienced on exif, so would any one help me?

Here is the result that I try to solve:

There is a function ProcessExifDir in include/exifReader.inc.php
and there is "switch($Tag){"  in that function, I echo the $Tag, which is a number "271" (when I try ti view the pic).
and there is no CASE of "271" so it will use "default" which will call debug function.
However it cannot show the debug msg unless I change the function from

   function debug($str,$TYPE = 0,$file="",$line=0) {
      if($this->debug) {
       echo "<br>[$file:$line:".($this->getDiffTime())."]$str";
       flush();
       if($TYPE == 1) {
          exit;
       }
      }
   }

to

   function debug($str,$TYPE = 0,$file="",$line=0) {
#       if($this->debug) {
       echo "<br>[$file:$line:".($this->getDiffTime())."]$str";
       flush();
       if($TYPE == 1) {
          exit;
       }
#       }
   }

After I changed it, it show the following debug msg:

[/usr/home/uphoto.hk/www.uphoto.hk/include/exifReader.inc.php:421:0.000450849533081]Stating Processing of 1
[:0:0.00158786773682]
--------------------------------------------------------------------------------

0:

[:0:0.00180602073669]
--------------------------------------------------------------------------------

[:0:0.00285792350769]
--------------------------------------------------------------------------------

0:

[:0:0.00311589241028]
--------------------------------------------------------------------------------

[:0:0.00333595275879]
Found '225'(Exif) Section, Proccessing

[:0:0.00376391410828]Exif header 14663 bytes long
[:0:0.00407290458679]Exif section in Intel order
[:0:0.00493001937866]
Directory with 11 entries
[:0:0.0143899917603]
Directory with 32 entries
[:0:0.0535860061646]
Directory with 56 entries
[:0:0.0561709403992]UNKNOWN TAG: 0
[:0:0.0568518638611]Illegal value pointer(65541) for tag 0

I guess the key point is last sentence "Illegal value pointer(65541) for tag 0", however I
do not know whether the problem is on that or not, and I do not know how to fix it too.
Would anyone help please?

I can leave my admin login here. This site was just created using the cpg 1.3.2 and did
not add/edit any coding.

http://www.uphoto.hk
admin username: yeah
password: yeah

Ming
Title: Re: exif not work make high loading
Post by: Tarique Sani on April 11, 2005, 07:22:04 AM
Looks like the EXIF for the image is either currupt OR the exif reader is unable to read this kind of information (the older exif reader does not do Unicode) - try removing the EXIF information from the image
Title: Re: exif not work make high loading
Post by: poming on April 11, 2005, 04:22:37 PM
Yes, it is the same result that I guess, however I tried one website that using CPG which
can get not only the correct exif, but also show the image without looping.
I think that website has changed some code or do sth else.

You may try to upload the pic http://www.uphoto.hk/albums/userpics/10001/kabobo-34.jpg manually using
this login info. (Please delete the image after you test, as the girl in image is my friend who don't want to post in
other place  ;D )
The website is in Chinese lang, sorry about it.
Username: demo
Password: demo
Login path: http://www.enjoyalbum.net/login.php
Upload path: http://www.enjoyalbum.net/upload.php

By the way, if the exif info of image is really corrupt, is there any way to prevent looping or problem occur?
It is lucky that I can find this pic this time, but I am not sure will my user do the same event in the future,
so it is good that to do sth to prevent problem occur again.

Title: Re: exif not work make high loading
Post by: Tarique Sani on April 12, 2005, 08:29:03 AM
I tried with the given image on my local setup using the latest cpg1.4 beta and it works perfectly - so I guess we have solved the problem in the new version og Coppermine
Title: Re: exif not work make high loading
Post by: poming on April 12, 2005, 02:08:37 PM
Oh, that's a great news for me. Thanks a lot. I will wait for it.