Skip to content

Commit

Permalink
Update the Readme with screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
dreampiggy committed Apr 15, 2019
1 parent 796f851 commit 7e66b95
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
2 changes: 0 additions & 2 deletions AVIFQuickLook/GeneratePreviewForURL.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
// Add image dimensions to title
NSString *newTitle = [NSString stringWithFormat:@"%@ (%d x %d)", [path lastPathComponent], (int)width, (int)height];

// NSLog(@"Options: %@", [(__bridge NSDictionary *)options description]);

NSDictionary *newOpt = @{ (NSString *)kQLPreviewPropertyDisplayNameKey : newTitle,
(NSString *)kQLPreviewPropertyWidthKey : @(width),
(NSString *)kQLPreviewPropertyHeightKey : @(height) };
Expand Down
46 changes: 45 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,46 @@
# AVIFQuickLook
AVIF QuickLook plugin on macOS

![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat) [![Build Status](https://travis-ci.com/dreampiggy/AVIFQuickLook.svg?branch=master)](https://travis-ci.com/dreampiggy/AVIFQuickLook)

This is the **macOS QuickLook** plugin for [AVIF (AV1 Image File Format)](https://aomediacodec.github.io/av1-avif/).

## Quick Look the image

![](https://raw.githubusercontent.com/dreampiggy/AVIFQuickLook/master/Screenshot/Thumbnails.png)

## Generate Finder thumbnails

![](https://raw.githubusercontent.com/dreampiggy/AVIFQuickLook/master/Screenshot/Preview.png)

These images are from [AVIF Specification Test Files](https://github.com/AOMediaCodec/av1-avif/blob/master/testFiles/)

## Requirements

+ macOS 10.10+

## Install

1. Grab the latest `AVIFQuickLook.qlgenerator` from the [Release Page](https://github.com/dreampiggy/AVIFQuickLook/releases/latest), or build using Xcode.
2. Open Finder
3. `Shift + Command + G`, input `~/Library/QuickLook/` and press Enter
4. Drag `AVIFQuickLook.qlgenerator` into this folder. You may need to enter the password

## Uninstall

1. Open Finder
2. `Shift + Command + G`, input `~/Library/QuickLook/` and press Enter
3. Delete `AVIFQuickLook.qlgenerator`

## Author

DreamPiggy, lizhuoli1126@126.com

## License

This project is released under the *MIT license*, see **LICENSE**.

## Thanks

+ [libavif](https://github.com/joedrago/avif)
+ [aom](https://aomedia.googlesource.com/aom/)

Binary file added Screenshot/Preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshot/Thumbnails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Test/test.avif
Binary file not shown.

0 comments on commit 7e66b95

Please sign in to comment.