Module: Raw Photo Support
|Posted: Thu, 2011-04-21 09:33|
I've written a new module that adds support for raw photo formats. The attached archive contains a couple patches.
Unfortunately, the current handling of resizes and thumbnails is too rigid to be extensible for new image types. The framework assumes that the resizes and thumbnails are both the same image format as the original. Then there is special-case handling for movies, which have to be treated differently. That mechanism leaves no room for extending support to other image types. (The fact that there is special handling for movies in the framework is a red flag). There should be a way to have an original image that is a raw photo, but a derived image that is a JPEG.
One of the attached patches shows a (not very good) way in which this could be addressed. But I didn't spend much time on it, because it feels like there needs to be a discussion with the core developers. I'd like to use this thread to develop a strategy for extensibility. Otherwise, gallery3 will always only be able to support JPEG and GIF and PNG images.