横200px、縦100pxで縦横比維持してリサイズしつつ中央切り抜き
app/models/user.rb
has_attached_file :photo,
:styles => {
:thumb => '200x100#'
}
Go to list of users who liked
More than 5 years have passed since last update.
横200px、縦100pxで縦横比維持してリサイズしつつ中央切り抜き
has_attached_file :photo,
:styles => {
:thumb => '200x100#'
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked