Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 02:23:35 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: cpg1.5.2 beta released
The brand new cpg1.5.x series that comes with a lot of new features finally has reached the release stage: a first public beta release cpg1.5.2 has been released that is mainly aimed at translators, testers and community members that have contributed in the past. The beta release is not meant to be used in a production environment, but only on testbeds and for evaluation purposes. There is currently no support for cpg1.5.x yet!
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: EXIF UserComment plugin  (Read 7363 times)
0 Members and 1 Guest are viewing this topic.
JohanLundin Topic starter
Contributor
***
Posts: 1


« on: March 16, 2006, 05:00:40 pm »

Just wrote up a quick and dirty plugin to extract the EXIF UserComment field from JPG pictures and display it in Coppermine as title/caption.

A few related URLs:

Description and download of plugin:
http://www.bluenine.se/products/photocomment/coppermineplugin.html

An EXIF UserComment editor:
http://www.bluenine.se/products/photocomment/

The plugin in action:
http://www.tacticaldiving.com/cpg/index.php

Any possibility to change the require to require_once in exif_php.inc.php for next release?
Would simplify the installation of this plug-in and won't break anything else.

« Last Edit: March 16, 2006, 10:57:11 pm by GauGau » Logged
Joachim Müller
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #1 on: March 16, 2006, 10:56:50 pm »

Thanks for your contribution. Here's the instructions from your page and the plugin zip file (in case your server goes down):
Quote
PhotoComment Coppermine plugin
- Displays your comment as image description in Coppermine

PhotoComment is by default configured to read and save comments for JPG pictures using the EXIF UserComment field. When publishing your photos online you may want to display these comments together with the pictures.

Coppermine is one of the better free open source photo album software packages available. The reason Coppermine was chosen to work with PhotoComment was:

    * Coppermine works reasonable well in PHP SafeMode which most PHP ISP offers
    * Coppermine is the most advanced photo album that still satisfies the previous condition
    * Coppermine has a plugin architecture making modifications easy

To install the PhotoComment Coppermine plugin follow these steps:

   1. Install Coppermine
   2. Download the plugin
   3. Unzip the plugin file and upload to server to create the following file structure
      <coppermine_root>/plugins/PhotoComment
      containing the files codebase.php and configuration.php
   4. Edit the file <coppermine_root>/include/exif_php.inc.php and change the line
      require("include/exif.php");
      to
      require_once("include/exif.php");
   5. Install the plugin from the Coppermine admin interface

 

* PhotoCommentCopperminePlugin.zip (0.92 KB - downloaded 282 times.)
Logged
Mats
Coppermine newbie

Posts: 14


« Reply #2 on: June 12, 2006, 12:35:22 pm »

For Coppermine 1.48: Is this plug-in still needed, or is it built-in?
Logged
Paver
Dev Team member
****
Gender: Male
United States United States

Posts: 1604


Paul Van Rompay


« Reply #3 on: June 12, 2006, 12:59:33 pm »

@Mats: Coppermine 1.4.8, as the announcement thread says, has no new features.  It only contains bug fixes and the important security fix and stability fix mentioned.

New features will be considered for the next major release which is 1.5.
Logged
Mats
Coppermine newbie

Posts: 14


« Reply #4 on: June 12, 2006, 02:27:44 pm »

Yeah, just noticed. Thanks for the reply Smiley

Still got one problem with this though, and that is that comments with accented characters get scrambled.

Example:
Code:
Utsikt fr宠v岠hotellterass

Should be:
Code:
Utsikt frċn vċr hotellterass

Running CPG 1.48 (with Unicode UTF-8) on Win2003 srv SP1, PHP 5.14 in ISAPI mode, MySQL 5.0.21 (Def. char set: latin1). This is a general problem though. Have the same in other plug-ins which I've translated into Swedish.

I haven't touched the CPG *.php files, and I've also tried updating php.ini's default_charset to:
Code:
default_charset = "UTF-8"

Strange thing is that CPG is fine, but after having added text to the EXIF UserComment field (done on a Swedish WinXP Pro SP2) and uploaded the two test images, they showed up like this:
(http://www.home.no/masken/pics/cpg_error_usercomment_plug-in.JPG)

Anyone with a clue?
« Last Edit: June 12, 2006, 03:27:31 pm by Mats » Logged
Mats
Coppermine newbie

Posts: 14


« Reply #5 on: June 12, 2006, 03:27:51 pm »

The page header (view > source) also shows UTF-8:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Logged
Mats
Coppermine newbie

Posts: 14


« Reply #6 on: June 13, 2006, 06:17:58 pm »

Noone? Sad
Logged
Joachim Müller
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #7 on: June 16, 2006, 09:12:32 am »

http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#lamesupport
Logged
Mats
Coppermine newbie

Posts: 14


« Reply #8 on: June 18, 2006, 08:42:20 pm »

uhm...? I didn't ask for your reply specifically. I bounced the message, that's all. Since this is a very active forum, there's a risk there will be no reply if it drops to te second page - and I did that after a whole day. Nothing to fuzz about if you ask me...
Logged
Nibbler
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #9 on: June 18, 2006, 11:18:06 pm »

> maybe nobody knows the answer to your problem

Mods come as-is, you can't demand support for them.
Logged

I don't care about what they say, I won't live or die that way.
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.052 seconds with 17 queries.