I'm trying to write a Cocoa application that will run from command line that does this:
read any picture file format (including .pdf and .eps files!), generate a thumbnail and save the thumbnail as a .jpg file
Basically I want to call this cocoa app from a PHP webpage so that I can view thumbnails and previews of 1 Gig files saved as .eps files. Using normal php doesn't work with .eps files, and simply reading a very large .eps file to convert it to a thumbnail crashes the system or at least takes a very long time.
I want to use the Quartz that generates thumbnails in Finder out of .eps files and use it to generate PHP readable .jpg files to view on a web browser.
What is the best way to do this (I'm somewhat of a newbie at Cocoa)? The NSImage class doesn't seem to have the method that simply reads files for thumbnails -- you have to load the whole file before you can process an image -- or correct me if I'm wrong in this.
thanks in advance
read any picture file format (including .pdf and .eps files!), generate a thumbnail and save the thumbnail as a .jpg file
Basically I want to call this cocoa app from a PHP webpage so that I can view thumbnails and previews of 1 Gig files saved as .eps files. Using normal php doesn't work with .eps files, and simply reading a very large .eps file to convert it to a thumbnail crashes the system or at least takes a very long time.
I want to use the Quartz that generates thumbnails in Finder out of .eps files and use it to generate PHP readable .jpg files to view on a web browser.
What is the best way to do this (I'm somewhat of a newbie at Cocoa)? The NSImage class doesn't seem to have the method that simply reads files for thumbnails -- you have to load the whole file before you can process an image -- or correct me if I'm wrong in this.
thanks in advance