With my current setup of an RPi and a Canon compact camera (running CHDK) acting as a high quality webcam the most expensive part of the script I'm running is the image conversion/resizing.
It basically goes.
Capture image
Download image from camera
Convert/resize image
Upload image to web server
After reading a few bits about the upcoming camera module which takes advantage of being directly connected to the GPU and harnesses the power of the GPU for image processing and video encoding, I was wondering if this capability would be available in some way for regular image conversions? Or is it even available in some form already? Or is this wishful thinking?
Currently I'm using "convert" from Imagemagick. Very simple and easy to use for converting a high res JPEG to a lower-res JPEG. I'm doing conversions of 1600x1200 to 1280x960 and 480x360 but I'd rather capture at the full resolution of the camera for archiving purposes but then the conversion takes far too long. The 1600x1200 to 1280x960 conversion takes around 10 seconds to complete.
If anyone has any ideas of how to drop the conversion time significantly, without dropping the JPEG quality, they would be greatly appreciated.
