Right now I'm trying to save large images for a user's avatar using Omniauth Facebook and Paperclip. It appears that after the user is created only the smallest image size is saved. I did some research and came across an answer that said to pass :image_size
as a parameter. Unfortunately it doesn't exactly say where it goes. I assumed that it went in my devise.rb
file but did not work:
Devise.setup do |config|
...
config.omniauth :facebook, "APP_ID", "SECRET_KEY", secure_image_url: true, image_size: "large"
end
Where exactly am I putting this to get it to work?
If you're using Omniauth Gem, you should be able to set a custom image size by passing it as a parameter and providing width and height in omniauth.rb file like so: