-
Notifications
You must be signed in to change notification settings - Fork 3
not compatible with phantomjs 2.0.0 #11
Comments
It looks like nothing code relevant changed in As a side note, is there any reason you aren't using |
Thanks. I found some problem when use the default engine. The output pictures sometimes have a significant amount of noise. The problem is serious in Windows platform but never appears in OS X. var spritesmith = require('spritesmith'),
fs = require('fs');
// Generate our spritesheet
var sprites = [
'images/0.png',
'images/4.png',
'images/2.png',
'images/1.png',
'images/5.png',
'images/3.png',
];
spritesmith({
src: sprites,
padding: 10
}, function handleResult(err, result) {
fs.writeFileSync(new Date().getTime() + '.png', result.image, 'binary');
}); |
Yikes, we should definitely see where that problem originates. However, I'm still heads down for the tonight. I will take a look at triaging it by the end of this weekend. |
Thanks very much :) |
I made a gist to reproduce the image issue but the output image seems to be the same when using the provided input image: https://gist.github.com/twolfson/825275c84e8005ef4fa2 Input: Output: Can you provide the source images? |
Additionally looked into getting Travis CI set up to test PhantomJS@2.0.0. It seems to be working out of the box =/ https://travis-ci.org/twolfson/phantomjssmith/builds/89591652 Going to see if I can get something set up on my machine (need to build it). |
Ah, going to nope out of that one =/
|
What OS are you using and what version of |
First of all, here is the source images. I'm using windows 10 now. The version of |
And I get a good output image in OS X EI Capitan as well, but still bad in windows. |
Alright, going to download a Windows 10 VM via modern.ie / |
I just had a try on windows 7 and another PC with window 10, and both get a good output image. Maybe something get wrong in my PC. |
Ah, cool. Yea, maybe double check the node versions or reinstall the |
I have installed |
If you isolate the issue and it's in |
On another note, I have reproduced the issue with PhantomJS@2.0.0 support on Windows. It's related to us using |
I will remember that :) And another idea, can like this: // change to
bufferedSpawn(require('phantomjs').path, [path.join(__dirname, 'scripts', 'stats.js'), filepath], |
Thanks :) |
Alright, it seems to be a deeper security issue that is unresolved in PhantomJS@2.0.0. The short of it is: we are using We could work around it by starting a server but that feels like major overkill for now. Going to leave this issue as open. Hackish work can be found here: |
Nice Job. |
So does something wrong with |
Ah, yea. It looks like we were running into the https://github.com/nodejs/node/blob/v4.1.1/CHANGELOG.md#2015-09-22-version-411-stable-rvagg |
It performed well with phantomjs 1.9.8, but does not work with phantomjs 2.0.0. It does not throw an exception but the ‘result’ param is undefined. I have check my PATH environment variable and it is ok. Can give some helps? Thank You!
node v4.1.0
windows 10 x64
The text was updated successfully, but these errors were encountered: