peter-mouland / node-resemble-v2 Goto Github PK
View Code? Open in Web Editor NEWNode api for Resemble.js (v2)
Node api for Resemble.js (v2)
Hi Peter!
I've noticed an issue when using different sized images that does not occur in a browser.
The following lines doesn't actually set a new size. For some reason the canvas.Image does not allow for the size to be updated like the original Image in the browser. I think this is the cause of failing test where the diff is up to 20% but 0 when I test the same images on the demo site.
if( scaleToSameSize && images.length == 1 ){
hiddenImage.width = images[0].width;
hiddenImage.height = images[0].height;
}
Have you had any troubles with this?
Currently there are a bunch of forks
kpdecker/node-resemble#11
rsmbl/Resemble.js#84
lksv/node-resemble.js#21
I've created an organisation at https://github.com/resemble-js for a potential resemble re-assemble + ensemble
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.