From d8bf34213ad8551ac8556a994e7ce51bef2fcf69 Mon Sep 17 00:00:00 2001 From: Yuki Date: Mon, 20 Jul 2015 03:54:20 +0530 Subject: [PATCH 1/3] Fix image sizes (thanks jpeg) --- lib/paperclip_processors/cropper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/paperclip_processors/cropper.rb b/lib/paperclip_processors/cropper.rb index 74626004..547ef810 100644 --- a/lib/paperclip_processors/cropper.rb +++ b/lib/paperclip_processors/cropper.rb @@ -16,12 +16,11 @@ module Paperclip if target.cropping? case @attachment.name when :profile_picture - ['-crop', "'#{target.crop_w.to_i}x#{target.crop_h.to_i}+#{target.crop_x.to_i}+#{target.crop_y.to_i}'"] + ['+repage', '-crop', "'#{target.crop_w.to_i}x#{target.crop_h.to_i}+#{target.crop_x.to_i}+#{target.crop_y.to_i}'"] when :profile_header - ['-crop', "'#{target.crop_h_w.to_i}x#{target.crop_h_h.to_i}+#{target.crop_h_x.to_i}+#{target.crop_h_y.to_i}'"] + ['+repage', '-crop', "'#{target.crop_h_w.to_i}x#{target.crop_h_h.to_i}+#{target.crop_h_x.to_i}+#{target.crop_h_y.to_i}'"] end end end end end - From 08d582da9232590bd816a502c54882d748e68c9a Mon Sep 17 00:00:00 2001 From: Yuki Date: Mon, 20 Jul 2015 04:16:31 +0530 Subject: [PATCH 2/3] AARGHGHHH --- lib/paperclip_processors/cropper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/paperclip_processors/cropper.rb b/lib/paperclip_processors/cropper.rb index 547ef810..ddbb076c 100644 --- a/lib/paperclip_processors/cropper.rb +++ b/lib/paperclip_processors/cropper.rb @@ -16,9 +16,9 @@ module Paperclip if target.cropping? case @attachment.name when :profile_picture - ['+repage', '-crop', "'#{target.crop_w.to_i}x#{target.crop_h.to_i}+#{target.crop_x.to_i}+#{target.crop_y.to_i}'"] + ['-auto-orient', '-strip', '+repage', '-crop', "'#{target.crop_w.to_i}x#{target.crop_h.to_i}+#{target.crop_x.to_i}+#{target.crop_y.to_i}'"] when :profile_header - ['+repage', '-crop', "'#{target.crop_h_w.to_i}x#{target.crop_h_h.to_i}+#{target.crop_h_x.to_i}+#{target.crop_h_y.to_i}'"] + ['-auto-orient', '-strip', '+repage', '-crop', "'#{target.crop_h_w.to_i}x#{target.crop_h_h.to_i}+#{target.crop_h_x.to_i}+#{target.crop_h_y.to_i}'"] end end end From 2c714969184eaeb9f28aa868a2f9a1ab4991db08 Mon Sep 17 00:00:00 2001 From: "Andreas N." Date: Mon, 20 Jul 2015 04:19:53 +0200 Subject: [PATCH 3/3] Link license in README (1337th commit) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 93454ae5..5b954aea 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ Guidelines for Pull Requests and general information about how you can help us i ## License -AGPLv3. +[AGPLv3](https://github.com/Retrospring/retrospring/blob/master/LICENSE).