thoughtbot/paperclip — Issue #619: Symlinks for styles that end up being the same image as other style
Author: ZequeZ
Created: 2011-10-09 06:54:42+00:00
State: open

Just an idea: an option to have the Paperclip create symlinks instead of processing and saving the whole image again if the style end up being the same as other style.

This would be useful for example when you have an style that is larger than the original, in that case it would copy the entire image again, to end up with the same image

```ruby
has_attached_file :img,
:styles => {
:thumb => "100x100>",
:mini => "200x200>",
:normal => "600x600>",
:original => "100%x100%"
}
```

In the case an image with a 300x300 dimension is uploaded, then
:thumb would be resized
:mini would be resized
:normal would be a softlink to :original
:original would, well, be the original

Just an idea, it could save quite an ammount of space and processing.