Author: caefer
Date: 2010-05-07 16:00:56 +0200 (Fri, 07 May 2010)
New Revision: 29388
Modified:
plugins/sfImageTransformExtraPlugin/trunk/README
plugins/sfImageTransformExtraPlugin/trunk/TODO
plugins/sfImageTransformExtraPlugin/trunk/package.xml.tmpl
Log:
updated package.xml, README and TODO to comply with the 1.0.2 release
Modified: plugins/sfImageTransformExtraPlugin/trunk/README
===================================================================
--- plugins/sfImageTransformExtraPlugin/trunk/README 2010-05-07 13:59:08 UTC
(rev 29387)
+++ plugins/sfImageTransformExtraPlugin/trunk/README 2010-05-07 14:00:56 UTC
(rev 29388)
@@ -447,6 +447,8 @@
``sfImageTransformManager`` will automatically convert any filepath/filename
with one of the following extensions (``jpg``, ``jpeg``, ``gif``, ``png``) to
an instance of sfImage.
The relative filepath will be looked up at the following locations:
``/path/to/your/project/data/resources/`` or (for the default formats)
``/path/to/your/project/plugins/sfImageTransformExtraPlugin/data/example-resources``.
+> As of version 1.0.2 you can also add your own resource locations in your
app.yml. Look at the plugins app.yml for an example.
+
So for the above example the files will be looked up in the following order:
1. ``/path/to/your/project/data/resources/overlays/star_frame.png``
@@ -501,10 +503,32 @@
class sfImageSourceSpecial extends sfImageSourceRemote implements
sfImageSourceInterface
{
- ...
+ /**
+ * Returns an sfImageSource:// URL specific to the implementing stream
wrapper
+ *
+ * @param array $parameters Current request parameters
+ * @return string sfImageSource:// URI
+ * @throws InvalidArgumentException
+ */
+ public static function buildURIfromParameters(array $parameters)
+ {
+ ...
+ }
+
+ /**
+ * Translates the given stream URL to the abolute path of the source
image
+ *
+ * @param string $path The given stream URL
+ * @return string
+ */
+ private function translatePathToFilename($path)
+ {
+ ...
+ }
+
}
-That is all you have to do.
+In most cases you only have to change/adapt the methods in the above example.
That is all you have to do.
Please make sure that the base URL (in the above example ``/thumbnails``)
exists and is writable.
Modified: plugins/sfImageTransformExtraPlugin/trunk/TODO
===================================================================
--- plugins/sfImageTransformExtraPlugin/trunk/TODO 2010-05-07 13:59:08 UTC
(rev 29387)
+++ plugins/sfImageTransformExtraPlugin/trunk/TODO 2010-05-07 14:00:56 UTC
(rev 29388)
@@ -1,12 +1,5 @@
-todos for 1.0.1
* write functional tests
* reorganise and complete tests for sources
-
-todos for 1.0.2
* write more tests to produce image urls
-
-todos for 1.1.0
* implement configurable 404 fallback
-
-todos for 1.1.1
* reach 100% code coverage
Modified: plugins/sfImageTransformExtraPlugin/trunk/package.xml.tmpl
===================================================================
--- plugins/sfImageTransformExtraPlugin/trunk/package.xml.tmpl 2010-05-07
13:59:08 UTC (rev 29387)
+++ plugins/sfImageTransformExtraPlugin/trunk/package.xml.tmpl 2010-05-07
14:00:56 UTC (rev 29388)
@@ -51,6 +51,24 @@
<changelog>
<release>
<version>
+ <release>1.0.2</release>
+ <api>1.0.0</api>
+ </version>
+ <stability>
+ <release>stable</release>
+ <api>stable</api>
+ </stability>
+ <license uri="http://www.symfony-project.org/license">MIT
license</license>
+ <date>2010-05-07</date>
+ <license>MIT</license>
+ <notes>
+ * caefer: added a way to add custom resource locations for overlays and
alpha masks" config/app.yml lib/transforms/sfImageTransformManager.class.php
+ * caefer: added a setting to re-configure the cache_namespace_callable
+ * caefer: bugfix: in Propel you have to use accessors to get
attributes. fixed in sfImageSourcePropel
+ </notes>
+ </release>
+ <release>
+ <version>
<release>1.0.1</release>
<api>1.0.0</api>
</version>
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.