Comments (3)
I doubt it's the image size. I've scanned larger images than that and, in any case, the function at 550 isn't (necessarily) recursive.
What is the anonymous function doing?
from jimp.
Jimp.prototype.blitAdv = function (src, x, y, srcx, srcy, srcw, srch, cb) {
if ("object" != typeof src || src.constructor != Jimp)
return throwError.call(this, "The source must be a Jimp image", cb);
if ("number" != typeof x || "number" != typeof y)
return throwError.call(this, "x and y must be numbers", cb);
// round input
x = Math.round(x);
y = Math.round(y);
var that = this;
src.scan(0, 0, srcw ? srcw : src.bitmap.width, srch ? srch : src.bitmap.height, function(sx, sy, idx) { // <- anonymous function
var dstIdx = that.getPixelIndex(x+sx, y+sy);
var ix = that.getPixelIndex(srcx ? srcx+sx : sx, srcy ? srcy+sy : sy);
that.bitmap.data[dstIdx] = this.bitmap.data[ix];
that.bitmap.data[dstIdx+1] = this.bitmap.data[ix+1];
that.bitmap.data[dstIdx+2] = this.bitmap.data[ix+2];
that.bitmap.data[dstIdx+3] = this.bitmap.data[ix+3];
});
if (isNodePattern(cb)) return cb.call(this, null, this);
else return this;
};
from jimp.
Nevermind, the bug was in the async forEachOfLimit caolan/async#75
Sorry.
from jimp.
Related Issues (20)
- Jimp 0.22.7 read function undefined HOT 1
- Discard alpha channel HOT 2
- Cant get right values for image HOT 1
- Jimp not woking in docker container HOT 2
- Whether phash is calculated correctly HOT 2
- npm audit fails about xml2js (from load-bmfont) HOT 15
- 怎么给图片添加圆角 HOT 2
- How to support Chinese fonts when adding text? HOT 1
- U
- Unicode HOT 1
- __dirname err - module build of jimp HOT 2
- browser build breaks in Vercel edge production
- 怎么使用中文字体 HOT 1
- Build failure due to bundle size. Advice on how to reduce please
- 怎么使用svg? HOT 1
- how do I read image data like width, height, exif ? HOT 1
- Do you support vite? HOT 4
- Does it support the conversion of HIF files? HOT 1
- Error: Unsupported MIME type: image/webp HOT 2
- Nimp link on read me directs to wrong website
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 jimp.