QLImageSizeIssue

Reason:

This issue is actually caused by the macOS 10.15.4 won't call the function QuickLookGeneratorPluginFactory of custom plugin which is not same as the macOS 10.14.6;

Detail:

How I debug with this project by the steps:

  1. git clone https://github.com/Nyx0uf/qlImageSize.git
  2. cd qlImageSize
  3. tar xJvf images-samples.txz (decompress sample image in the project)
  4. open qlImageSize.xcodeproj
  5. Xcode top menu: Product -> Scheme -> Edit Scheme
    • Info -> Executable -> Other -> cmd + shift + g -> /usr/bin/qlmanage 1
    • Arguments: 3 [A] copy from 3 [B] copy result from terminal: realpath Users/benjamin/btsync/projects/qlImageSize/images-samples/webp.webp [C] webp
    • close
  6. add breakpoint in QuickLookGeneratorPluginFactory of main.m 4
  7. Xcode top menu: Product - Run, break point is hit with webp on macOS 10.15.4 (if not, try to restart Xcode, god bless Apple)
  8. but if replace webp to png, the break point is not hit with png on macOS 10.15.4.:
    • replace [B] with result from terminal realpath Users/benjamin/btsync/projects/qlImageSize/images-samples/png.png
    • replace [C] with png 5
    • after run project, the break point is not hit with png on macOS 10.15.4.
  9. but repeating the same steps wrote above on macOS 10.14.6, I find the break point is hit with both webp and png on macOS 10.14.6. It works well.

Conclusion until now:

As sabrex wrote the macOS 10.15.4 is not calling the custom quick look plugin with the common image file type such as png / jpg.

macOS 10.14.6 macOS 10.15.4
webp
png

PS:

As hazarek wrote I love this handy feature too. Sadly I can't fix it so far. If anyone have any thought, please leave a comment. 😭😭😭