Comments (8)
Maybe the old generator based can not support animation. The new QLPreviewView (Which need a App, no longer a qlgenerator
plugin) can custom draw anything on NSView
https://developer.apple.com/videos/play/wwdc2019/719?time=942
https://developer.apple.com/documentation/quicklookui/qlpreviewview
https://developer.apple.com/documentation/quicklook/qlpreviewingcontroller?language=objc
Maybe this is the future way to support animation.
from avifquicklook.
Emmm...QuickLook API design (from Apple) does not support Animated Image.
You see, it's received a CGContext
(canvas, only draw one image), or CGImage
(single frame)
We can only support to display animated AVIF into the static poster frame, is this enough for your use case ? @superbonaci
from avifquicklook.
For Icon Thumbnail (See in Finder):
from avifquicklook.
Emmm...QuickLook API design (from Apple) does not support Animated Image.
I can play perfectly animated gif inside Quick Look (select the gif then Space Bar), for example this file: https://giphy.com/gifs/tag-sample-BfbUe877N4xsUhpcPc
If I click the "Open with Preview" button then it displays a static image, but that's not what I meant.
from avifquicklook.
You don't realize that GIF
is Apple's internal QuickLook Plugin, which does not use the public API.
As a non-Apple company employee, I can not do the similiar thing, because the public API does not contains this ability.
qlmanage -m plugins
qlmanage -p example.avif
Check the verbose log, which point into this `/System/Library/QuickLook/Image.qlgenerator`
from avifquicklook.
If possible, I can try to dis-assemble that Apple's Image.qlgenerator
and see how they render Animation on CGContext. Maybe using a Timer to refresh the canvas ?
Or find their private API, which may contains something like frame count, duration, etc
from avifquicklook.
You don't realize that
GIF
is Apple's internal QuickLook Plugin, which does not use the public API.
You mean that GIF
is AN internal QuickLook Plugin, not the only one. The video you quoted talks about thumbnails, just hope your app doesn't create such files. Viewing or previewing any file should not create any new file or "cache" in the filesystem.
I wonder if you can make this work as a "plugin" and not having to install a full .dmg program.
from avifquicklook.
Maybe it's just a AVIFQuickLook.app
, you can place it into anywhere you like (Because Mac has a Spotlight service, will search all .app
in your disk), like ~/Documents/Tools/AVIFQuickLook.app
, you don't need to open it at all.
Then you can preview the AVIFs animation.
from avifquicklook.
Related Issues (15)
- macOS 10.14.5 安装后不生效 HOT 4
- Don't work with 10.15.7 HOT 1
- XCode 13 CoreGraphics import HOT 1
- Cannot preview in MacOS 12.6 HOT 2
- Unable to open AVIF HOT 7
- After install via brew and qlmanage reload cache, the thumbnail updated, but become gray HOT 10
- Use QLPreviewingController to provide better support for macOS 10.13+ HOT 1
- Catalina HOT 4
- How to update the lib files? HOT 2
- Add to brew? HOT 4
- Does not seem to work for me under 10.13.6 HOT 5
- Permission denied error on BigSur (solved) HOT 1
- Doesn't work for me on 11.6.2 HOT 2
- Worked for me on 12.0.1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avifquicklook.