As I wrote here I was looking for a way to use QuickLook to produce preview images of files.
On day later Matt Legend Gemmell luckily wrote a little method to do exactly what I wanted.
I took that as a reason to write my first little Objective-C/Cocoa app: A command line tool, which uses QuickLook to generate preview images of files.
It took me some time to get familiar with the ObjC syntax and I noticed it’s really boring to write ObjC apps with a German keyboard layout because of the heavy use of square brackets. My next notebook will definitely have an English keyboard layout!
I also took advantage of the new Garbage Collection in ObjC 2.0 (yeah, you can throw stones on me!). But I think it’s a nice thing for developers who are not so familiar with ObjC/C/C++ like me.
To cut a long story short, here is the code: http://github.com/kommen/quikiee/
Here is the binary: quickiee.zip (requires Mac OS X 10.5, obviously)
Attention: The code is not tested very well and may blow up your computer! :)
How to use?
./quickiee <srcfile> <destfile> <size> <imageformat>
Comments, suggestions, enhancements etc. to the code are welcome!
Cool! I need to have a look at that once I’m at home and actually have time for interesting stuff. :o)
Curious if when you were writing if you found a way to save each page of a pdf?
This sounds great.
Could you post some sample output please?
Masterly ! Works perfect off the rack. Particular thanks for having revealed the code.
do you think it is possible to generate preview images for all pages of scrollable- of multipage content like documents?