close #88 white edges for EXIF=6, tests passing

This commit is contained in:
jywarren
2015-04-25 18:10:38 -04:00
parent 00c513876b
commit 51e183ea45
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ class ApplicationController < ActionController::Base
end
def check_subdomain
if request.subdomain.present?
if request.subdomain.present? && Rails.env != 'test'
redirect_to 'http://' + request.domain + request.port_string + request.fullpath
end
end

View File

@@ -230,7 +230,7 @@ class Warpable < ActiveRecord::Base
if rotation == 6
puts 'rotated CCW'
source_corners = [[0,self.width],[0,0],[self.height,0],[self.height,self.width]]
source_corners = source_corners = [[0,self.height],[0,0],[self.width,0],[self.width,self.height]]
elsif rotation == 8
puts 'rotated CW'
source_corners = [[self.height,0],[self.height,self.width],[0,self.width],[0,0]]