fpiraneo / oclife

Tagging and getting extended document informations on ownCloud
GNU General Public License v3.0
18 stars 17 forks source link

Cannot add Tags to Pictured I have Uploaded #16

Open domneu opened 9 years ago

domneu commented 9 years ago

I can add them to the sample pictures and other files, but cannot add them to any pictured I have uploaded.

Is there something else I should check?

Thank you, Dominic

fpiraneo commented 9 years ago

As answered on owncloud app forum, unfortunately I don't have enough clues to help you; a system setup posted here may help. F.

domneu commented 9 years ago

No problem... One thing. I am not sure how to go about that. Do you just want the config.php file, or something elst that I can get you?

Thanks, Dominic

AlZiBa commented 9 years ago

Same problem here. My solution: in oclife/libs/utilities.php in function glueArrayHTML add condition if (($key <> 'MakerNote') && (strpos($key, 'UndefinedTag') === false)) after foreach($myArray as $key => $value)

domneu commented 9 years ago

Sorry it took so long... I found what I think is the problem, but haven't been able to fix it. If the picture I upload is over around 2 MB, it will not allow me to tag the picture. I also get an error in my log:

trim() expects parameter 1 to be string, array given at /var/www/owncloud/apps/oclife/libs/utilities.php#265

Might this have something to do with it?

Thank you

Just want to clarify - When I am in the file list view, viewing my pictures, I see the "informations" link appear for me to click on it. When I click, nothing happens if the file is over 2MB. If the file is below that, the tagging box comes up and it works.

AlZiBa commented 9 years ago

I solved this problem for me a long time ago. I got the same php error.

It looks like a problem of exif data from some? camera models which are not well handled by php function exif_read_data. This happens in my case for unreadable values for "MakerNote"s in EXIF section and for "UndefinedTag"s in IFD0 section of the result array of this function.

My solution: Changed oclife/libs/utilities.php as you can see above.

I do not have any problems with picture files > 2 MB.

Please try the updated utilities.php from here.