Skip to content

Commit 976f628

Browse files
committed
stacking imagery better
1 parent f292ac5 commit 976f628

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/models/warpable.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
class Warpable < ActiveRecord::Base
44

55
has_attachment :content_type => :image,
6-
#:storage => :file_system,:path_prefix => 'public/warpables',
7-
:storage => :s3,
6+
:storage => :file_system,:path_prefix => 'public/warpables',
7+
#:storage => :s3,
88
:max_size => 5.megabytes,
99
# :resize_to => '320x200>',
1010
:processor => :image_science,
@@ -91,8 +91,8 @@ def generate_affine_distort(scale,path)
9191
end
9292

9393
if (self.public_filename[0..3] == 'http')
94-
Net::HTTP.start('s3.amazonaws.com') { |http|
95-
# Net::HTTP.start('localhost') { |http|
94+
#Net::HTTP.start('s3.amazonaws.com') { |http|
95+
Net::HTTP.start('localhost') { |http|
9696
resp = http.get(self.public_filename)
9797
open(local_location, "wb") { |file|
9898
file.write(resp.body)

public/cartagen/cartagen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8886,7 +8886,7 @@ document.observe('cartagen:init', Map.init.bindAsEventListener(Map))
88868886
document.observe('glop:predraw', Map.draw.bindAsEventListener(Map))
88878887
var Warper = {
88888888
initialize: function() {
8889-
Glop.observe('cartagen:predraw', this.draw.bindAsEventListener(this))
8889+
Glop.observe('cartagen:postdraw', this.draw.bindAsEventListener(this))
88908890
Glop.observe('mousedown',this.mousedown.bindAsEventListener(this))
88918891
Glop.observe('dblclick', this.dblclick.bindAsEventListener(this))
88928892
},

public/cartagen/src/warper/warper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
var Warper = {
66
initialize: function() {
7-
Glop.observe('cartagen:predraw', this.draw.bindAsEventListener(this))
7+
Glop.observe('cartagen:postdraw', this.draw.bindAsEventListener(this))
88
Glop.observe('mousedown',this.mousedown.bindAsEventListener(this))
99
Glop.observe('dblclick', this.dblclick.bindAsEventListener(this))
1010
},

0 commit comments

Comments
 (0)