Comments (5)
Hey,
Yes you can do that! The filtr object gives you access to the canvas element through the canvas() method. You can then do this (on click for example): window.open(filtr.canvas().toDataURL(), "w");
This will popup a new window with the image in it and you can then right click save-as. You can also insert an img tag into your document:
var newImg = document.createElement("img");
newImg.src = filtr.canvas().toDataURL();
document.body.appendChild(newImg);
}
from filtrr.
Thanks for the reply. This worked for me. I am trying to post the newly created image to Facebook using the Graph API. However, it's tricky as there's no file name or file path. Have you tried it out?
Thanks!
from filtrr.
If you put the output of toDataURL() as the src of an tag it will show the image.
from filtrr.
I found an issue where if you specify a image URL in the bigpic src attribute, then filtrr algo just hangs.
For the same photo, saved locally on my filesystem, the algorithm does work.
Have you tried this yourself?
from filtrr.
I tried it, it doesn't work because of a JavaScript security exception. More here: http://stackoverflow.com/questions/2704929/uncaught-error-security-err-dom-exception-18.
from filtrr.
Related Issues (20)
- Implement fisheye.
- Investigate glfx.js
- Implement a bias effect. HOT 1
- Resetting of Filtrr HOT 12
- Improve brightness and contrast algorithm HOT 1
- Improve "softLight" HOT 1
- Canvas id is filtrr-undefined if img has no id.
- Website filtrr.me not working HOT 3
- css width and height of image is overriden by actual image width and height
- Save image to server HOT 1
- Node.js HOT 1
- Use Filtrr on server-side
- Security issue when using dup() and images on external domain.
- Filtrr2 not executing on realtime
- Website is Down
- Filtrr.me is down.
- Implement pseudo-nonblocking rendering.
- Implement a vignette effect.
- Blending modes API HOT 1
- Exporting method.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filtrr.