Closed seidtgeist closed 14 years ago
The solution here would be to provide some kind of hook to overwrite the extension, kind of like we do with the filename. That way the RMagick module could hook into that and add whatever extension it needs.
This is sort of a nice to have, considering how long this ticket has been open, maybe there's not too much interest?
Not anymore. Given nobody replied to this I think we can forget about it.
I had the following use case:
DocumentUploader
Problem: There's no obvious way to modify the filename ONLY of a specific version. If I set the uploader's filename method all versions (including the original) will be affected.
So I propose: If a version does a format conversion its filename should probably also get the appropriate extension. It sounds like a sensible default. I guess the current behavior can't possibly make any sense.
In order to make it work I monkey-patched the version class like this (bad idea, but works):