Re: XP Publish and exif data

Brian Burke <[email protected]>
Newsgroups gmane.comp.horde.ansel
Message-ID <1080749773.17792.2.camel@arrow>
Maybe this time?


On Wed, 2004-03-31 at 09:50, Chuck Hagenbuch wrote:
> Quoting Brian Burke <[email protected]>:
> 
> > With the attachment this time?
> 
> Nope. Make sure it's text/plain. But thanks for the patch - that's definitely
> the solution. :)
> 
> -chuck
> 
> --
> "Regard my poor demoralized mule!" - Juan Valdez

-- 
ansel mailing list - Join the hunt: http://horde.org/bounties/#ansel
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
patch (text/plain, 952 B)
? rot
Index: xppublish.php
===================================================================
RCS file: /repository/ansel/xppublish.php,v
retrieving revision 1.19
diff -u -r1.19 xppublish.php
--- xppublish.php	20 Mar 2004 07:05:49 -0000	1.19
+++ xppublish.php	31 Mar 2004 14:38:48 -0000
@@ -11,6 +11,7 @@
 @define('AUTH_HANDLER', true);
 @define('ANSEL_BASE', dirname(__FILE__));
 require_once ANSEL_BASE . '/lib/base.php';
+require_once ANSEL_BASE . '/lib/Exif.php';
 
 $cmd = Util::getFormData('cmd');
 if (empty($cmd)) {
@@ -211,6 +212,10 @@
 
         $gallery = &$ansel_shares->getShare($galleryId);
         $image_id = $gallery->addImage($image);
+        if (!is_a($image_id, 'PEAR_Error')) {
+            $tmp = &$ansel_shares->getImage($image_id);
+            Ansel_ImageData::setExifData($tmp);
+        }
         if (is_a($image_id, 'PEAR_Error')) {
             $error = _("There was a problem uploading the image.");
         } else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.