I am using paperclip to save images(version 3.5.1) and (rails version 3.2.21) . I have various styles defined in my model for paperclip
has_attached_file(:image,
:styles => {
:logo => "300x2000>",
:thumbnail => '100x100#',
:large => '1000x1000#',
:background => '2048x1024#'
})
For certain images I don't want certain style and for some images I want paperclip to process all the images. Example for profile type of images I want only thumbnail and logo style to be processed where as for gallery images I want it to process all the images (logo, thumbnail, large, background). Is it possible to achieve this in paeprclip?
Aucun commentaire:
Enregistrer un commentaire