mirror of
https://github.com/publiclab/mapknitter.git
synced 2025-12-12 11:20:00 +01:00
close #88 white edges for EXIF=6, tests passing
This commit is contained in:
@@ -23,7 +23,7 @@ class ApplicationController < ActionController::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_subdomain
|
def check_subdomain
|
||||||
if request.subdomain.present?
|
if request.subdomain.present? && Rails.env != 'test'
|
||||||
redirect_to 'http://' + request.domain + request.port_string + request.fullpath
|
redirect_to 'http://' + request.domain + request.port_string + request.fullpath
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ class Warpable < ActiveRecord::Base
|
|||||||
|
|
||||||
if rotation == 6
|
if rotation == 6
|
||||||
puts 'rotated CCW'
|
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
|
elsif rotation == 8
|
||||||
puts 'rotated CW'
|
puts 'rotated CW'
|
||||||
source_corners = [[self.height,0],[self.height,self.width],[0,self.width],[0,0]]
|
source_corners = [[self.height,0],[self.height,self.width],[0,self.width],[0,0]]
|
||||||
|
|||||||
Reference in New Issue
Block a user