zdravko.balorda at siix
May 9, 2011, 12:24 AM
Post #4 of 9
David E. Wheeler wrote:
> On May 6, 2011, at 5:38 AM, Zdravko Balorda wrote:
>> I really need to switch to thumbnails. however I'll need several
>> thumbnails of different sizes. And I wish to avoid having many
>> documents of the same image unless they could be somehow be separated
>> from originals. So that they won't appear together in search results.
>> Since I don't know how to separate them, I was thinking about
>> creating thumbnails on the fly. A cover story template would do resizing
>> and cropping, and publishing the result, without ever storing a media.
>> Is this feasible?
> No. Media have to be stored in the database in order to be published. Unless your template is going to replicate distribution, which I wouldn't recommend.
Nor would I do that. :)
> You can prevent thumbnails from showing up in search results if you make them of a type or in a category that your users don't have permission to see.
This seems alright.
> If you're happy with that, then do check out find_or_create_alternate() in the Image class:
One more thing, though: does this API allows for more than one thumbnail?
How to keep up with changes of the original media document? I saw somewhere, it's been
solved, but can't find it.