Nyx0uf / qlImageSize

QuickLook and Spotlight plugins to display the dimensions, size and DPI of an image in the title bar instead of the filename. Also preview some unsupported formats like WebP & bpg.
MIT License
1.19k stars 66 forks source link

Is there a file size limit for this plugin? #18

Closed satmandu closed 7 years ago

satmandu commented 7 years ago

I'm trying to get this work to look at some larger webp files (tens of megabytes and up to 100 megapixels) and I get this error message:

qlmanage -d 4 -p -x  /Users/satadru/Desktop/Users/satmandu/Desktop/test.webp > ~/Desktop/stdout.txt

2017-02-19 14:39:32.489 qlmanage[1191:20862] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8303, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-02-19 14:39:32.503 qlmanage[1191:20862] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9e3b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-02-19 14:39:32.504 qlmanage[1191:20862] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa103, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.

from the stdout.txt:

Previewing file:///Users/satmandu/Desktop/test.webp. Content type UTI: public.webp. Generator used: <QLGenerator /Library/QuickLook/qlImageSize.qlgenerator>
[DEBUG] Thumbnailing file:///Users/satmandu/Desktop/test.webp - type: public.webp - generator: <QLGenerator /Library/QuickLook/qlImageSize.qlgenerator> (try #1)
quicklookd says generator of <QLThumbnail 0x7ff2ccfc02f0 31783 file:///Users/satmandu/Desktop/test.webp> misbehaved

On another file I get this:

qlmanage -d 4 -p -x  /Users/satmandu/Desktop/largetestfile.webp > ~/Desktop/stdout.txt

2017-02-19 14:50:24.489 qlmanage[1360:25841] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x8303, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-02-19 14:50:24.504 qlmanage[1360:25841] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9e3b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-02-19 14:50:24.506 qlmanage[1360:25841] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa103, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.

from the stdout.txt:

[DEBUG] Previewing file:///Users/satmandu/Desktop/largetestfile.webp. Content type UTI: public.webp. Generator used: <QLGenerator /Library/QuickLook/qlImageSize.qlgenerator>
[DEBUG] Thumbnailing file:///Users/satmandu/Desktop/largetestfile.webp - type: public.webp - generator: <QLGenerator /Library/QuickLook/qlImageSize.qlgenerator> (try #1)

(When I do a get info on the file it does show me the correct dimensions for the file though.)

(I've attached the file here, split into zip files since it is too big to upload by itself.)

largetestfile.webp.001.zip largetestfile.webp.002.zip largetestfile.webp.003.zip largetestfile.webp.004.zip

satmandu commented 7 years ago

Thanks!

Nyx0uf commented 7 years ago

OK I found a better way to handle big WebP images that should always work. I successfully got a preview of your sample image.

satmandu commented 7 years ago

Thank you. This works beautifully, even for webp files in excess of 100 megapixels!