Skip to content

Releases: tungs/timecut

v0.2.0

25 Jan 08:25
Compare
Choose a tag to compare

Version 0.2.0 reflects changes in version 0.2.0 of timesnap. It removes the time handling code from timesnap and puts it into a separate package timeweb.

It also adds issue and pull request templates.

Command Line

  • Additional viewport options using the format optionKey=value, for instance `--viewport="800,600,deviceScaleRatio=2"
  • Using launch arguments --force-device-scale-ratio and --device-scale-ratio (e.g. --launch-arguments="--force-device-scale-ratio=2") should now work, though it's advisable to just use deviceScaleRatio with the viewport above (see tungs/timesnap#40).

Node.js

  • Adds config.navigatePageToURL to allow for custom navigation
  • Adds config.outputStream to pipe output to a stream instead of writing to a file

core-v0.2.0

25 Jan 08:21
7c5521f
Compare
Choose a tag to compare

timecut-core is a version of a timecut that doesn't automatically bundle puppeteer as a dependency.

TBD

core-v0.1.4

25 Jan 03:15
b4e2eb9
Compare
Choose a tag to compare

timecut-core is a version of a timecut that doesn't automatically bundle puppeteer as a dependency. Instead it relies on the user to supply a config.launcher function or a config.browser object that returns or is a puppeteer/puppeteer like browser object.

v0.1.4

22 Nov 05:42
Compare
Choose a tag to compare

timecut now throws an error if it encounters one. Last updated before v0.2.0.

v0.1.3

13 Sep 05:01
Compare
Choose a tag to compare

Updates ESLint to version 6. Also adds more configuration options:

Command Line

  • --screenshot-type type
    • Output image format for the screenshots. By default,png is used. jpeg is also available.
  • --screenshot-quality quality
    • Not applicable to pngs. Quality level between 0 to 1 for lossy screenshots. Defaults to 0.92 when in canvas capture mode and 0.8 otherwise.

node.js:

  • config.screenshotType
    • Output image format for the screenshots. By default, png is used. jpeg is also available.
  • config.screenshotQuality
    • Not applicable to pngs. Quality level between 0 to 1 for lossy screenshots. Defaults to 0.92 when in canvas capture mode and 0.8 otherwise.
  • config.logger
    • Allows for a custom logging function. The supplied function should be able to take the same arguments as console.log, though currently, it is only called with a single string argument.

v0.1.2

23 Mar 23:42
Compare
Choose a tag to compare

timecut now requires Node version 8.9.0 or higher (up from version 6.4.0 or higher).

Adds more configuration options:

Command Line

  • --remote-url path
    • URL of remote Chromium/Chrome instance to connect using puppeteer.connect()

node.js:

  • config.remoteUrl
    • URL of remote Chromium/Chrome instance to connect using puppeteer.connect()

v0.1.1

29 Jul 18:55
Compare
Choose a tag to compare

This version reflects changes in timesnap v0.1.1 that adds preliminary support for video playback as either elements in the webpage or as images drawn to canvases.

Note that the default version of timecut, timesnap, and puppeteer installs Chromium, which does not have proprietary video formats included (e.g. .mp4 with h.264 encoding). You can use Chrome which can play those formats in timecut by using the --executable-path or config.executablePath option to specify the path to an installed version of Chrome.

  • This version of timecut does not add a default -pix_fmt to ffmpeg arguments if -pix_fmt is already defined in config.outputArguments or --outputArguments. Previously this was in input arguments instead of output arguments.

v0.1.0

25 Jun 03:57
Compare
Choose a tag to compare

This version reflects changes made in timesnap. Its v0.1.0 release changed the way that requestAnimationFrame operates, running its callbacks in relation to capturing images instead of running them at a fixed rate. See tungs/timesnap#10 and tungs/timesnap#17 for more information.

v0.0.6

18 Jun 05:48
Compare
Choose a tag to compare
  • Adds canvas capture mode, an experimental mode for transferring data directly from the canvas element, via the --canvas-mode command line option, or via config.canvasMode for Node.js
  • Outputs the elapsed capture time, calculated from just before capturing frames begins to after it ends
  • Removed the minimum 60fps call rate for requestAnimationFrame calls

v0.0.5

19 May 23:46
Compare
Choose a tag to compare

Adds a package-lock.json file. Also adds more configuration options.

Command Line

  • --executable-path path specifies which Chromium/Chrome executable to use
  • --no-headless runs Chromium/Chrome with a display (not headless)
  • --keep-frames doesn't delete frames after processing them, if not in pipe mode

node.js:

  • config.executablePath specifies which Chromium/Chrome executable to use
  • config.headless runs Chromium/Chrome in headless mode (default: true)
  • config.preparePage a function to run after a page is loaded, but before screenshots begin
  • config.preparePageForScreenshot a function to run before each screenshot
  • config.keepFrames doesn't delete frames after processing them, if not in pipe mode