dreampiggy / AVIFQuickLook

AVIF QuickLook plugin on macOS
MIT License
171 stars 5 forks source link

Unable to open AVIF #14

Closed superbonaci closed 1 year ago

superbonaci commented 1 year ago

Unable to play this avif. Installed from brew.sh.

animation-woods.avif.zip

dreampiggy commented 1 year ago

Have a try with v1.2.0 https://github.com/dreampiggy/AVIFQuickLook/releases/download/1.2.0/AVIFQuickLook.qlgenerator.zip

or

brew upgrade avifquicklook

See readme about how to install the qlgenerator, or using Homebrew to upgrade.

superbonaci commented 1 year ago

I've installed already but the space bar does not preview anything:

quicklook

superbonaci commented 1 year ago

Issue not fixed.

dreampiggy commented 1 year ago

You use another app contains AVIF quicklook, seems ImageMagisk? uninstall or just remove their "xxx.qlgenetator"

Or GIMP, that icon

Use qlmange -vvvv -p example.avif to find out which is used

dreampiggy commented 1 year ago

I found that some Mac Image Editor app, like Pixelmator Pro, GIMP, also has their own QuickLook plugin which cause conflict

This icon is GIMP ? https://www.gimp.org/

superbonaci commented 1 year ago

Yes, it is GIMP. The '-v' flag does not exist in current version:

$ qlmanage -version
QuickLook framework: v5.0 (965.6)
$ qlmanage
Usage: qlmanage [OPTIONS] path...
    -h      Display this help
    -r      Force reloading Generators list
    -r cache    Reset thumbnail disk cache
    -m [name ...]   Display statistics about quicklookd. Stats names:
            * plugins   Show the generators list
            * server    Show quicklookd life information
            * memory    Show quicklookd memory consumption
            * burst     Show statistics about the last burst
            * threads   Show concurrent accesses stats
            * other     Show other information about quicklookd
    -p      Compute previews of the documents
    -t      Compute thumbnails of the documents
    -x      Use quicklookd (remote computation)
    -i      Compute thumbnail in icon mode
    -s size     Size for the thumbnail
    -f factor   Scale factor for the thumbnail
    -F factor   Scale factor for the thumbnail, draw downscaled and compare to 1x
    -z      Display generation performance info (don't display thumbnails)
    -o dir      Output result in dir (don't display thumbnails or previews)
    -c contentType  Force the content type used for the documents
    -g generator    Force the generator to use
superbonaci commented 1 year ago

This is the information you requested:

$ qlmanage -vvvv -p animation-woods.avif
qlmanage: v does not allow other arguments
Usage: qlmanage [OPTIONS] path...
    -h      Display this help
    -r      Force reloading Generators list
    -r cache    Reset thumbnail disk cache
    -m [name ...]   Display statistics about quicklookd. Stats names:
            * plugins   Show the generators list
            * server    Show quicklookd life information
            * memory    Show quicklookd memory consumption
            * burst     Show statistics about the last burst
            * threads   Show concurrent accesses stats
            * other     Show other information about quicklookd
    -p      Compute previews of the documents
    -t      Compute thumbnails of the documents
    -x      Use quicklookd (remote computation)
    -i      Compute thumbnail in icon mode
    -s size     Size for the thumbnail
    -f factor   Scale factor for the thumbnail
    -F factor   Scale factor for the thumbnail, draw downscaled and compare to 1x
    -z      Display generation performance info (don't display thumbnails)
    -o dir      Output result in dir (don't display thumbnails or previews)
    -c contentType  Force the content type used for the documents
    -g generator    Force the generator to use
qlmanage -p animation-woods.avif
Testing Quick Look preview with files:
    animation-woods.avif
2023-07-25 11:30:23.315 qlmanage[3280:21786] Failed to decode image: BMFF parsing failed

Did you try with file attached in first comment?

It must be the file I've provided, which is wrong, since this sample works: https://github.com/AOMediaCodec/av1-avif/blob/master/testFiles/Xiph/tiger_3layer_1res.avif

tiger