[ansel] XP Publish and exif data
Brian Burke
BPBurke at alum.mit.edu
Wed Mar 31 08:16:13 PST 2004
Maybe this time?
On Wed, 2004-03-31 at 09:50, Chuck Hagenbuch wrote:
> Quoting Brian Burke <BPBurke at alum.mit.edu>:
>
> > 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
-------------- next part --------------
? 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 {
More information about the ansel
mailing list