Good morning Alfredo ;)

file sizes:

Paperclip will post process (resize) your images - if all validations are ok - 
otherwise post processing will not commence. 

Paperclip supports an extensible selection of post-processors. When you define 
a set of styles for an attachment, by default it is expected that those 
"styles" are actually "thumbnails". However, you can do much more than just 
thumbnail images. By defining a subclass of Paperclip::Processor, you can 
perform any processing you want on the files that are attached.

eg.: has_attached_file :avatar, :styles => { :medium => "300x300>", :thumb => 
"100x100>" }

this image will have two resized copies, a medium and a thumb
which you may show using a helper:

<%= image_tag @user.avatar.url(:medium) %>


location of file:

(from https://github.com/thoughtbot/paperclip - understanding storage): The 
files that are assigned as attachments are, by default, placed in the directory 
specified by the :path option to has_attached_file. By default, this location 
is :rails_root/public/system/:class/:attachment/:id_partition/:style/:filename. 


cheers,
Walther

Den 05/04/2014 kl. 08.55 skrev Alfredo Barrero <abarrer...@gmail.com>:

> Good afternoon everyone. 
> 
> 
> Im using the gem Paperclip in order to upload the images of the users to my 
> server. But I having problems with it. I don't know how to resize the image 
> size after uploading the image. 
> 
> I'm using CSS to try to change the size but is not working. I think Paperclip 
> is showing the exactly size that it was saved. Could anyone help me?. 
> 
> 
> Another question is about the location of the pictures that the gem Paperclip 
> is using. When I add a picture with this gem, Where it is saved?. 
> 
> 
> Thank you & best regards. 
> 
> Alfredo.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/d057d5d7-a3cf-42da-a648-a7c154ed5b24%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/65627286-E532-48DE-9D1E-D0ED81C38DD4%40diechmann.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to