Created
October 24, 2012 19:29
-
-
Save SunboX/3948274 to your computer and use it in GitHub Desktop.
Pixastic blurfast deaktivieren
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pixastic.process = function(img, actionName, options, callback) { | |
| // guckst du hier ;o) | |
| console.log(img.getAttribute('src')); | |
| // org. pixastic code | |
| if (img.tagName.toLowerCase() == "img") { | |
| var dataImg = new Image(); | |
| dataImg.src = img.src; | |
| if (dataImg.complete) { | |
| var res = Pixastic.applyAction(img, dataImg, actionName, options); | |
| if (callback) callback(res); | |
| return res; | |
| } else { | |
| dataImg.onload = function() { | |
| var res = Pixastic.applyAction(img, dataImg, actionName, options) | |
| if (callback) callback(res); | |
| } | |
| } | |
| } | |
| if (img.tagName.toLowerCase() == "canvas") { | |
| var res = Pixastic.applyAction(img, img, actionName, options); | |
| if (callback) callback(res); | |
| return res; | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment