FriendsOfCake / cakephp-upload

CakePHP: Handle file uploading sans ridiculous automagic
https://cakephp-upload.readthedocs.io/
MIT License
551 stars 255 forks source link

Thumbnail functionality should be extracted into a plugin #34

Closed sdoney closed 12 years ago

sdoney commented 12 years ago

Thumbnail functionality should be extracted from this plugin and created as a plugin that compliments this plugin.

josegonzalez commented 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.

josegonzalez commented 12 years ago

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.

josegonzalez commented 12 years ago

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.