Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8342583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:48:57+00:00 2026-06-09T05:48:57+00:00

So I want to try the Pixastic blur fast method to blur an image.

  • 0

So I want to try the Pixastic blur fast method to blur an image.
The code they supply in the documentation is the following:

var img = new Image();
img.onload = function() {
    Pixastic.process(img, "blurfast", {amount:0.5});
}
document.body.appendChild(img);
img.src = "myimage.jpg";

But when I try it on my page like this:

$(document).ready(function() {
    var myImg = new Image();
    myImg.onload = function() {
        Pixastic.process(myImg, "blurfast", {amount:0.5});
    }
    document.body.appendChild(myImg);
    myImg.src = "../img/theImage.jpg";
});

It simply does nothing.

I also tried to call it like this, also without any result:

var img = new Image();
$(".div img").load(function(){
    Pixastic.process(img, "blurfast", {amount:0.5});
});
document.body.appendChild(img);
img.src = "../img/theImage.jpg";

It does not even throw an error!

I tried to understand what is happening: In img, a new image is created. As soon as the image in .div has loaded, Pixastic fires and adds the blur effect to the newly created image. Now, the image is applied as a child and gets a src attribute.

As you probably notice, I have some logical errors in there, but I can’t get this clear. I believe that in the above code, img is not always the same. Sometimes it’s the variable, sometimes it has to be the actual image from the img-tag. Is this true? Or do you see any other thing that strikes you? Why is it not working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:49:00+00:00Added an answer on June 9, 2026 at 5:49 am

    Ok, got it!
    I need to call it through the jQuery method for some reason. Like:

    $(".div img").pixastic("blurfast", {amount:0.5});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to try to create an image using NSdata. If imageWithData: method of
I want to try CMake to manage a new C++ project. However, some files
If I want to try out something new in Ruby or Javascript, I love
I want to try playing with CouchDB for a new project I'm writing (as
I want to try out the new Beta 2 of Visual Studio 2010, but
I want to try Spree on windows and am following the Getting Started guide,
I want to try PartCover for code coverage. I'm running Visual Studio 2008 Professional
I want to try a few things with the new version of the framework,
I want to try experimenting with running low level code my Nexus One phone,
I want to try new solr collapsing/grouping included in solr 3.3, i have tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.