https://github.com/ariya/phantomjs这个应该是phantomjs的bug 具体情况是 超过3万多像素 截图输出jpg 超过部分是黑色的
若是png超过部分是透明的
@
larryzhao 也提交issue了 (今天给你发了封邮件不知道看到没)
https://github.com/ariya/phantomjs/issues/11934这个问题貌似是fix了 但是不知道为什么还是出现 1049
https://github.com/ariya/phantomjs/blob/master/src/webpage.cpp // We use tiling approach to work-around Qt software rasterizer bug
// when dealing with very large paint device.
// See
http://code.google.com/p/phantomjs/issues/detail?id=54.
const int tileSize = 4096;
int htiles = (buffer.width() + tileSize - 1) / tileSize;
int vtiles = (buffer.height() + tileSize - 1) / tileSize;
for (int x = 0; x < htiles; ++x) {
for (int y = 0; y < vtiles; ++y) {
**Rendering PNGs hangs on some sites while PDF works great.**
http://code.google.com/p/phantomjs/issues/detail?id=54https://github.com/ariya/phantomjs/commit/e7ca6c0a