为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Screenshot command line --dp 6 stops working after 10 screenshots

  • 3 个回答
  • 5 人有此问题
  • 1 次查看
  • 最后回复者为 edvardgrieg11

more options

Hi, I was trying the command line function(?) "screenshot" with the "--dpr" argument ("--dpr 6"), but what I realized is that if I take 10 screenshots, the next ones must have a smaller dpr value (e.g., "--dpr 5"), and this continues after taking more screenshots with the smaller value (the screenshot function will only work now with "--dpr 4" or less). Why is this happening? What am I doing wrong? Thanks!

Hi, I was trying the command line function(?) "screenshot" with the "--dpr" argument ("--dpr 6"), but what I realized is that if I take 10 screenshots, the next ones must have a smaller dpr value (e.g., "--dpr 5"), and this continues after taking more screenshots with the smaller value (the screenshot function will only work now with "--dpr 4" or less). Why is this happening? What am I doing wrong? Thanks!

所有回复 (3)

more options

I couldn't find a way to edit my question, so sorry for double posting. But for example: if I go here http://www.democracynow.org/2016/4/7/headlines/iceland_names_new_prime_minister_in_wake_of_panama_papers and hit shift + F2 and type in "screenshot --fullpage --dpr 6" it won't even run.

I have 12 Gb RAM, I'm a Win 7 64 bit user (Firefox 32 bit), Intel Core i7

more options

由cor-el于修改

more options

Thanks cor-el! To tell the truth, I couldn't make much of the code, but I think the problem lies with the function createScreenshotData. Something is not flushing, it seems that the more screenshots I make something builds up and in the end the function can't work anymore. As if a buffer had it's memory treshold exceeded.

The importance of the dpr value is only the size of the file, it gets bigger with a bigger value. After a certain amount of data is captured the screenshot function stops working. For example, if I take 10 screenshots with --dpr 6, or (say) 22 with --dpr 5, or a mix (8 screens with --dpr 6 and 12 with --dpr 5) I can't take any more screenshots (or maybe some with a smaller dpr value, like 1 or 2). I need to restart Firefox in order for it to work again