diff --git a/Imagine/Filter/Loader/InterlaceFilterLoader.php b/Imagine/Filter/Loader/InterlaceFilterLoader.php
new file mode 100644
index 000000000..97baad74b
--- /dev/null
+++ b/Imagine/Filter/Loader/InterlaceFilterLoader.php
@@ -0,0 +1,23 @@
+interlace($mode);
+
+ return $image;
+ }
+}
diff --git a/Resources/config/imagine.xml b/Resources/config/imagine.xml
index aa2666a66..71bdc0f5d 100644
--- a/Resources/config/imagine.xml
+++ b/Resources/config/imagine.xml
@@ -41,6 +41,7 @@
Liip\ImagineBundle\Imagine\Filter\Loader\BackgroundFilterLoader
Liip\ImagineBundle\Imagine\Filter\Loader\UpscaleFilterLoader
Liip\ImagineBundle\Imagine\Filter\Loader\AutoRotateFilterLoader
+ Liip\ImagineBundle\Imagine\Filter\Loader\InterlaceFilterLoader
@@ -181,6 +182,10 @@
+
+
+
+
diff --git a/Resources/doc/filters.md b/Resources/doc/filters.md
index a02d633e0..bb28834d3 100644
--- a/Resources/doc/filters.md
+++ b/Resources/doc/filters.md
@@ -149,6 +149,20 @@ liip_imagine:
my_thumb:
filters:
auto_rotate: ~
+
+### The `interlace` filter
+
+Set progressive loading on the image
+Configuration looks like this:
+
+``` yaml
+liip_imagine:
+ filter_sets:
+ my_thumb:
+ filters:
+ interlace:
+ # mode can be one of none,line,plane,partition
+ mode: line
```
## Load your Custom Filters
diff --git a/Tests/Functional/Imagine/DataManagerTest.php b/Tests/Functional/Imagine/Data/DataManagerTest.php
similarity index 86%
rename from Tests/Functional/Imagine/DataManagerTest.php
rename to Tests/Functional/Imagine/Data/DataManagerTest.php
index 710959b5a..94da78be3 100644
--- a/Tests/Functional/Imagine/DataManagerTest.php
+++ b/Tests/Functional/Imagine/Data/DataManagerTest.php
@@ -1,5 +1,5 @@
createClient();
+ $service = self::$kernel->getContainer()->get('liip_imagine.filter.loader.interlace');
+
+ $this->assertInstanceOf('Liip\ImagineBundle\Imagine\Filter\Loader\InterlaceFilterLoader', $service);
+ }
+}
+
diff --git a/Tests/Imagine/Filter/Loader/InterlaceFilterLoaderTest.php b/Tests/Imagine/Filter/Loader/InterlaceFilterLoaderTest.php
new file mode 100644
index 000000000..cef7c4252
--- /dev/null
+++ b/Tests/Imagine/Filter/Loader/InterlaceFilterLoaderTest.php
@@ -0,0 +1,28 @@
+getMockImage();
+ $image
+ ->expects($this->once())
+ ->method('interlace')
+ ->with('TEST')
+ ;
+
+ $result = $loader->load($image, array('mode' => 'TEST'));
+
+ $this->assertInstanceOf('Imagine\Image\ImageInterface', $result);
+ }
+}