[Yanel-commits] rev 60872 - public/yanel/trunk/src/contributions/resources/image

michi at wyona.com michi at wyona.com
Tue Sep 27 11:34:27 CEST 2011


Author: michi
Date: 2011-09-27 11:34:26 +0200 (Tue, 27 Sep 2011)
New Revision: 60872

Added:
   public/yanel/trunk/src/contributions/resources/image/resource-mobile.xml
Log:
resource definition added of mobile image

Added: public/yanel/trunk/src/contributions/resources/image/resource-mobile.xml
===================================================================
--- public/yanel/trunk/src/contributions/resources/image/resource-mobile.xml	                        (rev 0)
+++ public/yanel/trunk/src/contributions/resources/image/resource-mobile.xml	2011-09-27 09:34:26 UTC (rev 60872)
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+
+<resource xmlns="http://www.wyona.org/yanel/1.0"
+  name="mobile-image"
+  namespace="http://www.wyona.org/yanel/resource/1.0"
+  class="org.wyona.yanel.impl.resources.image.MobileImageResource"
+  >
+<description>
+Image resource which scales jpeg images if requested by a mobile device
+</description>
+
+<rtd>
+  <property name="width"/> <!-- Either width or height, one of these properties is required in order to determine the scale factor -->
+  <property name="height"/>
+  <property name="cache-root-path" default-value="/cached-images"/> <!-- optional, whereas if not configured then the default value will be used -->
+</rtd>
+</resource>



More information about the Yanel-commits mailing list