Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AVIF file test #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

VictorLamoine
Copy link

Is this test enough? I'm not proficient at JavaScript at all!

$ npm test

> [email protected] pretest
> standard && depcheck

No depcheck issue

> [email protected] test
> mocha


  ✔ ffprobe reads the duration of a video: 77ms
  ✔ ffprobe does not take the frame count into account: 69ms
  ✔ image AVIF can process a single-image AVIF file: 217ms
  ✔ image HEIC can process a single-image HEIC file: 590ms
  ✔ image HEIC can process a burst-image HEIC file: 470ms
  ✔ image HEIC can process a live (photo + video) HEIC file: 348ms
  ✔ image HEIC can process a HEIC with a P3 color profile: 1524ms
  ✔ image crops a JPEG file: 188ms
  ✔ image resizes a JPEG file proportionally: 207ms
  ✔ image can set a custom output quality: 189ms
  ✔ image create a cropped frame from an animated GIF: 204ms
  ✔ image creates a resized frame from an animated GIF: 203ms
  ✔ image creates a resized animated GIF: 296ms
  ✔ image extract a frame from a transparent animated GIF: 201ms
  ✔ image resizes a transparent animated GIF: 218ms
  ✔ image converts a TIFF to JPEG: 191ms
  ✔ image can add a watermark in the default location: 192ms
  ✔ image can add a watermark in a given location: 192ms
  ✔ image can add a tiled watermark: 205ms
  ✔ image includes the watermark when resizing: 191ms
  ✔ image ignores the watermark when cropping: 204ms
  ✔ image can add custom post-processing arguments: 194ms
  ✔ image removes all metadata by default: 101ms
  ✔ image can optionally keep metadata: 106ms
  ✔ image reads rotation data (landscape 1) and generates a straight-up image: 191ms
  ✔ image reads rotation data (landscape 2) and generates a straight-up image: 205ms
  ✔ image reads rotation data (landscape 3) and generates a straight-up image: 208ms
  ✔ image reads rotation data (landscape 4) and generates a straight-up image: 191ms
  ✔ image reads rotation data (landscape 5) and generates a straight-up image: 199ms
  ✔ image reads rotation data (landscape 6) and generates a straight-up image: 210ms
  ✔ image reads rotation data (landscape 7) and generates a straight-up image: 208ms
  ✔ image reads rotation data (landscape 8) and generates a straight-up image: 202ms
  ✔ image reads rotation data (portrait 1) and generates a straight-up image: 190ms
  ✔ image reads rotation data (portrait 2) and generates a straight-up image: 196ms
  ✔ image reads rotation data (portrait 3) and generates a straight-up image: 210ms
  ✔ image reads rotation data (portrait 4) and generates a straight-up image: 205ms
  ✔ image reads rotation data (portrait 5) and generates a straight-up image: 208ms
  ✔ image reads rotation data (portrait 6) and generates a straight-up image: 194ms
  ✔ image reads rotation data (portrait 7) and generates a straight-up image: 217ms
  ✔ image reads rotation data (portrait 8) and generates a straight-up image: 207ms
  ✔ still extracts a frame from an MP4 video: 336ms
  ✔ still extracts a frame from a very short video: 290ms
  ✔ still extracts a frame from a video that only has a single frame: 277ms
  ✔ still extracts and crops a frame from an MP4 video: 331ms
  ✔ still can extract a frame at a given second: 433ms
  ✔ still can extract a frame in the middle: 490ms
  ✔ video can downsample a video for a smaller filesize: 576ms
  ✔ video can convert a video to webm: 611ms
  ✔ video can convert to MP4 with a target bitrate: 576ms
  ✔ video can convert to WEBM with a target bitrate: 1442ms
  ✔ video can convert to MP4 with a target quality: 577ms
  ✔ video can convert to WEBM with a target quality: 1559ms
  ✔ video removes metadata by default: 246ms
  ✔ video can optionally keep metadata: 244ms
  ✔ video can report progress when processing videos: 959ms
  ✔ avif calls gmagick and exiftool: 153ms
  ✔ avif stops at the first failing call: 51ms
  ✔ avif only processes each file once: 151ms
  ✔ avif keeps track of files already processed: 153ms
  ✔ ffargs crf for h264: 0ms
  ✔ ffargs crf for vpx: 0ms
  ✔ ffargs video filters uses yuv420p chroma subsampling by default: 0ms
  ✔ ffargs video filters handles MTS interlacing: 1ms
  ✔ ffargs video filters handles VAAPI hardware acceleration: 0ms
  ✔ ffargs video filters passes the video filter argument: 0ms
  ✔ ffargs framerate sets to a default value if not specified: 1ms
  ✔ ffargs framerate can specify a framerate value: 0ms
  ✔ ffargs framerate keeps the source framerate if set to 0: 0ms
  ✔ ffmpeg calls the callback when ffmpeg exits with code 0: 1ms
  ✔ ffmpeg calls the callback with an error when ffmpeg exits with code 1: 0ms
  ✔ ffmpeg calls the callback when ffmpeg cannot be launched: 0ms
  ✔ ffmpeg reports progress when ffmpeg emits a duration update: 0ms
  ✔ ffmpeg can parse duration and progress even when lines are emitted in chunks: 0ms
  ✔ ffmpeg reports progress even when duration and time are emitted together: 1ms
  ✔ ffmpeg reports progress throughout and finally terminates: 0ms
  ✔ ffprobe parses the FFProbe output rounded to 1 digit: 0ms
  ✔ ffprobe fail if FFProbe cannot be executed: 1ms
  ✔ ffprobe handles unexpected FFProbe output: 1ms
  ✔ gifsicle throws if the image is not a GIF: 0ms
  ✔ gifsicle cannot crop an animated GIF: 0ms
  ✔ gifsicle calls Gifsicle: 0ms
  ✔ gifsicle resizes to a given width: 1ms
  ✔ gifsicle resizes to a given height: 0ms
  ✔ gmagick no arguments: 0ms
  ✔ gmagick empty array of arguments: 1ms
  ✔ gmagick single argument with no values: 0ms
  ✔ gmagick single argument with one value: 0ms
  ✔ gmagick single argument with space-separated values: 0ms
  ✔ gmagick multiple arguments: 1ms
  ✔ heic calls gmagick and exiftool: 151ms
  ✔ heic stops at the first failing call: 51ms
  ✔ heic only processes each file once: 152ms
  ✔ heic keeps track of files already processed: 153ms

  93 passing (20s)

@VictorLamoine
Copy link
Author

@rprieto friendly ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant