Skip to content

Commit

Permalink
+ support 'filter' prop in imageTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
RubaXa committed Oct 20, 2013
1 parent 1efad8a commit a235624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/FileAPI.Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@
, type: params.type || file.type || 'image/png'
, quality: params.quality || 1
, overlay: params.overlay
, filter: params.filter
});

queue.inc();
Expand Down
2 changes: 1 addition & 1 deletion lib/FileAPI.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@
var key;
for( key in trans ){
if( trans.hasOwnProperty(key) ){
if( !(trans[key] instanceof Object || key === 'overlay') ){
if( !(trans[key] instanceof Object || key === 'overlay' || key === 'filter') ){
return true;
}
}
Expand Down

0 comments on commit a235624

Please sign in to comment.