[ansel] [patch] Use direct vfs option in crop template
Brian Keifer
brian at valinor.net
Wed Oct 15 20:34:17 PDT 2003
This patch lets the crop template take advantage of the direct-from-vfs image
viewing.
-Brian
--
I live in the United States of America, where we are gradually coming to
understand that nothing we do is ever our fault, especially if it is really
stupid.
--Dave Barry, "The Tide is high and other household problems"
-------------- next part --------------
Index: templates/crop/crop.inc
===================================================================
RCS file: /repository/ansel/templates/crop/crop.inc,v
retrieving revision 1.1
diff -u -r1.1 crop.inc
--- templates/crop/crop.inc 29 Sep 2003 21:38:56 -0000 1.1
+++ templates/crop/crop.inc 16 Oct 2003 02:02:50 -0000
@@ -4,6 +4,8 @@
</div>
</div>
+<?php $image_url = Ansel::getImageUrl($gallery_id, $image_id) ?>
+
<div id="image">
<?php echo Horde::img($image_url, '', 'class="image" id="original" name="original" onload="document.getElementById(\'or_width\').value = document.getElementById(\'original\').width; document.getElementById(\'or_height\').value = document.getElementById(\'original\').height;" style="border:1px solid black;"', '') ?>
</div>
More information about the ansel
mailing list