Giter Club home page Giter Club logo

avifquicklook's Introduction

AVIFQuickLook

License: MIT Build Status

This is the macOS QuickLook plugin for AVIF (AV1 Image File Format). Including 10-bit HDR support.

Generate Finder thumbnails

QuickLook the image

These images are from AVIF Specification Test Files

Requirements

  • macOS 10.11+ (Big Sur+)
  • M1/Intel Mac are both supported

Build

  • Xcode 13+
  • CocoaPods 1.11+
pod install
open AVIFQuickLook.xcworkspace

Install

Homebrew Cask (New!)

brew install avifquicklook

Manual

  1. Grab the latest AVIFQuickLook.qlgenerator from the Release Page, or build using Xcode.
  2. Open Finder
  3. Shift + Command + G, input ~/Library/QuickLook/ and press Enter. For macOS Catalina above, use /Library/QuickLook/ instead.
  4. Drag AVIFQuickLook.qlgenerator into this folder. You may need to enter the password

Uninstall

Homebrew Cask (New!)

brew uninstall avifquicklook

Manual

  1. Open Finder
  2. Shift + Command + G, input ~/Library/QuickLook/ and press Enter. For macOS Catalina above, use /Library/QuickLook/ instead.
  3. Delete AVIFQuickLook.qlgenerator

For macOS Big Sur+

If you face the issue that the AVIF preview is blank, please try running the following command:

xattr -d -r com.apple.quarantine ~/Library/QuickLook/AVIFQuickLook.qlgenerator

Note the path is where you put the AVIFQuickLook.qlgenerator

Author

DreamPiggy, [email protected]

License

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

Thanks

avifquicklook's People

Contributors

dreampiggy avatar grishka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

avifquicklook's Issues

Catalina

Great plugin, but I've got into problems installing it on macOS Catalina 10.15.4 (19E287)
I didn't even had ~/Library/QuickLook folder, created this folder and put the plugin here, nothing happened. Tried to run the binary with Control key so it gets "registered", didn't help.
Only after I put the plugin into /Library/QuickLook it started to work

Maybe Readme file needs some corrections?

How to update the lib files?

Hello,

There are 3 dependency files libaom.a libavif.a libgb.a. From where do you got those so we can update if we want?

Don't work with 10.15.7

Résult for qlmanage -p test.avif :

Testing Quick Look preview with files:
test.avif
2022-03-12 15:50:34.994 qlmanage[10255:82062] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8d03, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2022-03-12 15:50:35.094 qlmanage[10255:82062] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xb41f, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.

Worked for me on 12.0.1

  • Using the 1.0.1 release.

  • Copied that to /Library/QuickLook/ (no tilde ~)

  • Worked once I ran this in Terminal, per the Mac OS Big Sur instructions, but agains minus the tilde ~:
    xattr -d -r com.apple.quarantine /Library/QuickLook/AVIFQuickLook.qlgenerator

Thanks @dreampiggy !

Screen Shot 2022-02-01 at 1 58 16 PM

Animated AVIF not playing

File sequence-without-pitm.avif from this bug is animated:
AVIF (AV1 Image File Format): image sequence and animation support

But animation is not played by AVIFQuickLook, only static image. Google Chrome does play it.

$ qlmanage -p sequence-without-pitm.avif
Testing Quick Look preview with files:
	sequence-without-pitm.avif
2023-07-25 10:39:29.280 qlmanage[3543:28404] +[IKImageContentView _clampImageAlphaTo01:colorSpace:] no CIImage passed in
2023-07-25 10:39:29.280 qlmanage[3543:28404] IKImageView2 _updateContentForLayerUsingIOSurface Error: source rect and destination rect of tile being drawn are not the same

Add to brew?

Thanks for a great extension!
Could you add it to brew.sh? It would be easier to update/install it.

Permission denied error on BigSur (solved)

Problem

I could not get it to work on MacOS Big Sur. Images didn't open in preview, showing a blank icon.
Running "qlmanage -p test.avif" in terminal shown following errors:

qlmanage[1322:18428] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x6b03, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2021-01-09 03:16:14.330 qlmanage[1322:18428] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x801b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.

Solution

After a while of googling, I've found this to solve the problem completely - simply run this command in terminal:

xattr -d -r com.apple.quarantine ~/Library/QuickLook/AVIFQuickLook.qlgenerator

Note, the location above ~/Library/QuickLook/ is if you've copied the AVIFQuickLook there for just your user. If you copied the file for all users, to /Library/QuickLook, obviously change the path accordingly.

Use QLPreviewingController to provide better support for macOS 10.13+

See: https://developer.apple.com/videos/play/wwdc2019/719?time=942

Apple introduce new QuickLook Preview Extension, which you need a macOS App and bundle it as appex extension. Then you can render anything for preview, using AppKit (like NSViewController/NSView) or even SwiftUI

Since some user like #17 need animation or complicated display render result, we may consider migrate to the new solution

Note:

  1. This need a dummy App, which means you will install something like AVIFQuickLook.app into /Applications

Doesn't work for me on 11.6.2

Added to /Library/QuickLook
then ran $ xattr -d -r com.apple.quarantine /Library/QuickLook/AVIFQuickLook.qlgenerator
then relaunched finder

still blank

Cannot preview in MacOS 12.6

MacOS Version: 12.6
AvifQuickLook:1.1

The thumbnail can be previewed in finder, but it cannot be opened through preview app.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.