问题
I recently changed my Paperclip configurations:
New Configs:
has_attached_file :scr, :styles => { :index => "215x165#", :show => "900" },
processors: [:thumbnail, :compression],
:content_type => { :content_type => ["image/jpg", "image/png"] }
Old Configs:
has_attached_file :scr, :styles => { :index => "215x165#
For Showing the Pictures i need on my App i use the :show
attribute.
The Problem is that my app has already a lot of pictures and upon changing the configs the pictures are not longer visible (Cause the cropping and configuration is done when uploading).
Is there a way to Re-Save those Pictures ?
I tried
Screen.find_each(&:save)
where "Screen" the pictures, but it didn't work.
What am i missing?
回答1:
Try running rake paperclip:refresh CLASS=Screen
来源:https://stackoverflow.com/questions/21048735/paperclip-configurations-old-attachments