exif not work make high loading exif not work make high loading
 

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

exif not work make high loading

Started by poming, April 10, 2005, 10:56:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

poming

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

Tarique Sani

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
SANIsoft PHP applications for E Biz

poming

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.


Tarique Sani

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
SANIsoft PHP applications for E Biz

poming

Oh, that's a great news for me. Thanks a lot. I will wait for it.