Closed sdoney closed 12 years ago
Or a plugin class that can be specified. We would be able to specify the class via an option. That way we can just App::import() the required thumbnailer and let it go to town.
One thing I thought of is that doing this would allow people to customize their thumbnail experience, as then it would be possible to just pass off all the plugin options - or maybe just those in a thumbnail
key - to the class and let the class decide what features to support.
For example, it would be trivially easy to support adaptive resize with PHPThumbnailer but I don't want to have to support it with GD/Imagick.
One thing that would be cool is to have different thumbnail methods depending upon the extension/mimetype of the uploaded file. In this way, we might even be able to support thumbnails for SWF files, Movies, PDFs etc. with a single configuration. Adding support for new types of files would be trivially easy so long as it implemented the interface.
Thumbnail functionality should be extracted from this plugin and created as a plugin that compliments this plugin.