[ansel] Patch for user preference to show EXIF data
Heath S. Hendrickson
heath at outerspaceconsultants.com
Tue Jan 20 07:57:49 PST 2004
I added another user preference to allow a user to select whether they
want to view the EXIF data automatically or not.
It's a wrapper around the require line in view.php
[root at space ansel]# cvs diff view.php
Index: view.php
===================================================================
RCS file: /usr/local/horde/cvs/ansel/view.php,v
retrieving revision 1.37
diff -r1.37 view.php
95c95,96
< require ANSEL_TEMPLATES . '/view/exif-image.inc';
---
> global $prefs;
> if($prefs->getValue('showexif')) require ANSEL_TEMPLATES .
'/view/exif-image.inc';
And a new stanza to the prefs.php.dist file (note, this also includes my
patch for setting the watermark text and for selecting the image type
when using GD or IM to create the thumbs and screens).
[root at space ansel]# diff config/prefs.php config/prefs.php.dist
3c3
< * $Horde: ansel/config/prefs.php.dist,v 1.15 2003/11/18 20:28:10
slusarz Exp $
---
> * $Horde: ansel/config/prefs.php.dist,v 1.16 2003/11/25 16:10:58 ben
Exp $
23,24c23
< 'members' => array('listtype', 'showdefaultimages',
'imagesperrow', 'imagesperpage', 'im_type',
< 'watermark', 'showexif')
---
> 'members' => array('listtype', 'showdefaultimages',
'imagesperrow', 'imagesperpage')
33a33
>
115,140d114
<
< $_prefs['im_type'] = array(
< 'value' => 'png',
< 'locked' => false,
< 'shared' => false,
< 'type' => 'enum',
< 'enum' => array('png' => _("PNG"),
< 'jpeg' => _("JPEG")),
< 'desc' => _("Image format for converted images (thumbnail and
screen resolutions)")
< );
<
< $_prefs['watermark'] = array(
< 'value' => '',
< 'locked' => false,
< 'shared' => false,
< 'type' => 'text',
< 'desc' => _("Watermark to use for images")
< );
<
< $_prefs['showexif'] = array(
< 'value' => 'true',
< 'locked' => false,
< 'shared' => false,
< 'type' => 'checkbox',
< 'desc' => _("Show EXIF data")
< );
heath
More information about the ansel
mailing list