This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
forked from jstorimer/delayed_paperclip
-
Notifications
You must be signed in to change notification settings - Fork 155
Displaying original image while processing as an option to :processing_image_url #99
Comments
Here's what I did:
and everything seems to work ok at this point. Give it a go. :) |
Fantastic! Thank you soo much! That is exactly what I was looking for. |
plase correct me if I'm wrong, but while this method works it could be slightly improved. Namely: suppose I process online the styles "large" and "small", but in background I process "thumbnail", "hd", "landscape", "vignette" etc.. It would be great to be able to return a different fallback depending on which style is being currently requested, e.g.
Maybe this is already possible but I have not understood how :) |
riffraff
added a commit
to riffraff/delayed_paperclip
that referenced
this issue
Aug 27, 2014
As shown in jrgifford#99 this is not immediately obvious. Maybe it could also refer to paperclip's interpolator docs?
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The idea of displaying the original image while processing thumbs etc. seems to be floating around. However it is not available as an option in
delayed_paperclip
.Is there any reason why you haven't done it already?
I am thinking about contributing to delayed_paperclip and submitting a patch request with it, but I would like to know if it was considered before or maybe rejected for some reason?
My idea was to make :processing_image_url accept a symbol of a method name in the model, that would be called to calculate the path to the original image. Or another option would be to allow :original symbol as on option for :processing_image_url.
I do struggle however to find the path of the original image in the paperclip attachment.
It can obviously be done in the view by checking .processing? and then displaying url(:thumb) or url(:original), but I treat it as a last resort
I would appreciate any suggestions or hints.
The text was updated successfully, but these errors were encountered: