noosfero | Image crop (!1424)
Iasmin Mendes
gitlab at mg.gitlab.com
Mon Apr 23 14:54:26 BRT 2018
Iasmin Mendes commented on a discussion on app/models/concerns/cropped_image.rb:
> +module CroppedImage
> +
> + extend ActiveSupport::Concern
> +
> + included do
> + attr_accessible :crop_x, :crop_y, :crop_w, :crop_h
> + attr_accessor :crop_x, :crop_y, :crop_w, :crop_h
> +
> + before_save :load_image_and_crop
> +
> + protected
> +
> + def load_image_and_crop
> + if %w(.jpeg .jpg .png .gif).include? File.extname(temp_path)
Jcrop can not load images with .tiff extension
---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1424#note_69913492
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180423/902ec864/attachment.html>
More information about the Noosfero-dev
mailing list