- Initial commit
- Supports processors
rmagick
. process crop: :avatar
resizes the original image to600x600
and performs cropping on it.
-
Supports processors
rmagick
andmini-magick
. -
Changed module name
Carrierwave
toCarrierWave
in sync withCarrierWave
gem. -
Deprecated
cropped_preview
form helper. Replaced it withpreviewbox
. -
Supports cropping of ONE attachment per model. Can be directly applied on original attachment if no versions exists.
process crop: :avatar
-
Supports cropping of MULTIPLE versions of one attachment per model.
-
Updated the cropping coffeescript (created by rails generator) to incorporate the changes in form helpers.
-
Added
version
,width
andheight
options to form helperscropbox
andpreviewbox
.##To render a specific version for cropping pass `version` option. <%= f.cropbox :avatar , version: :medium %> <%= f.peviewbox :avatar , version: :medium %> ## Pass the same version as specified in cropbox ## If you override ONE of width/height you MUST override both, otherwise passed option would be ignored. <%= f.cropbox :avatar, width: 550, height: 600 %> <%= f.previewbox :avatar, width: 200, height: 200 %>
-
Added
width
andheight
arguments to proccessor methodcrop
.## If ONLY "thumb" version is to be cropped version :jumbo do resize_to_limit(600,600) end version :thumb do process crop: :avatar ## Crops this version based on original image resize_to_limit(100,100) end ## With width and height ## If ONLY "thumb" version is to be cropped version :jumbo do resize_to_limit(600,600) end version :thumb do ## To crop this version based on `jumbo` version, pass width = 600 and height = 600 ## Specify both width and height values otherwise they would be ignored process crop: [:avatar, 600, 600] resize_to_limit(100,100) end
- Fixes Issue #1: Colons in html
id
attribute for Namespaced Models