question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong height value generated with given -V param

See original GitHub issue

I am recording a html page using Timesnap. The temporary images always show a height equals 600px. No matter how I change its value in --viewport param, it doesn’t change. Here is the command that I run from the terminal:

timecut https://cn.bing.com -V 1920,1080 --duration=5

And this is what I got, with a resolution 1920x600, not 1920x1080. image

I’m surely that my laptop has a 1920x1080 screen, and it’s performance is enough for showing such a simple html page.

How can I got images with a correct height value ? Thanks

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dkjiaoyangcommented, Jan 21, 2021

Thanks a lot, I am extremely appreciative of your suggestion. After adding the logs, the running cli shows

 timesnap https://cn.bing.com -V 1920,1080 --fps=1 --duration=5
1920 1080
[ 1920 ]

It seems like there is only one item 1920 in dims, 1080 missing. I tried the command with both values enclosed in double quotation:

 timesnap https://cn.bing.com -V "1920,1080" --fps=1 --duration=5
1920 1080
[ 1920, 1080 ]

So this is caused by Windows arguments parsing. THANKS!

0reactions
tungscommented, Jan 21, 2021

Thanks for the update! It’s good to know about this potential issue with Windows and your fix for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

height - CSS: Cascading Style Sheets - MDN Web Docs
The height CSS property specifies the height of an element. By default, the property defines the height of the content area.
Read more >
jQuery height() returning false values - css - Stack Overflow
If I give them a fixed pixel height then the jQuery height() function returns the correct value, but not when they are on...
Read more >
Confidence Intervals - SPH - Boston University
Another way of thinking about a confidence interval is that it is the range of likely values of the parameter (defined as the...
Read more >
Frame Buffer Settings - V-Ray for 3ds Max - Chaos Help
Height – Specifies the height of the image when Get resolution from Max is disabled. Swap – Swaps the values of Height and...
Read more >
Initialization — The Swift Programming Language (Swift 5.7)
Classes and structures must set all of their stored properties to an appropriate initial value by the time an instance of that class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found