Skip to content

Instantly share code, notes, and snippets.

@SunboX
Created October 24, 2012 19:29
Show Gist options
  • Select an option

  • Save SunboX/3948274 to your computer and use it in GitHub Desktop.

Select an option

Save SunboX/3948274 to your computer and use it in GitHub Desktop.
Pixastic blurfast deaktivieren
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