summaryrefslogtreecommitdiff
path: root/app/client
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-14 11:47:08 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-14 11:47:08 +0200
commit9b55cce94742b698b55db76b5139556ee454c483 (patch)
tree8766cc47926cb621255afd06b828dfeb5972e1a3 /app/client
parent9c75a4d23c901d456c65e5370a9f55c1f03944a9 (diff)
deploy bundle
Diffstat (limited to 'app/client')
-rw-r--r--app/client/live/live.reducer.js1
-rw-r--r--app/client/live/whammy.js4
-rw-r--r--app/client/modules/pix2pix/views/pix2pix.live.js2
3 files changed, 4 insertions, 3 deletions
diff --git a/app/client/live/live.reducer.js b/app/client/live/live.reducer.js
index 1ab8e37..f1f2f4e 100644
--- a/app/client/live/live.reducer.js
+++ b/app/client/live/live.reducer.js
@@ -17,6 +17,7 @@ const liveInitialState = {
const liveReducer = (state = liveInitialState, action) => {
let results;
+ if (action.type !== 'SYSTEM_STDOUT') console.log(action.type, action)
switch(action.type) {
case types.socket.load_params:
if (! action.opt || ! Object.keys(action.opt).length) {
diff --git a/app/client/live/whammy.js b/app/client/live/whammy.js
index 0b460cc..08a0ce9 100644
--- a/app/client/live/whammy.js
+++ b/app/client/live/whammy.js
@@ -496,7 +496,7 @@ module.exports = (function(){
if(frame.toDataURL){
// frame = frame.toDataURL('image/webp', this.quality);
// quickly store image data so we don't block cpu. encode in compile method.
- frame = frame.getContext('2d').getImageData(0, 0, frame.width, frame.height);
+ frame = frame.getContext('2d-lodpi').getImageData(0, 0, frame.width, frame.height);
}else if(typeof frame != "string"){
throw "frame must be a a HTMLCanvasElement, a CanvasRenderingContext2D or a DataURI formatted string"
}
@@ -516,7 +516,7 @@ module.exports = (function(){
var frames = this.frames;
var tmpCanvas = document.createElement('canvas');
- var tmpContext = tmpCanvas.getContext('2d');
+ var tmpContext = tmpCanvas.getContext('2d-lodpi');
tmpCanvas.width = this.frames[0].image.width;
tmpCanvas.height = this.frames[0].image.height;
diff --git a/app/client/modules/pix2pix/views/pix2pix.live.js b/app/client/modules/pix2pix/views/pix2pix.live.js
index a6e739c..26ad3ce 100644
--- a/app/client/modules/pix2pix/views/pix2pix.live.js
+++ b/app/client/modules/pix2pix/views/pix2pix.live.js
@@ -42,7 +42,7 @@ class Pix2PixLive extends Component {
this.props.actions.live.load_epoch(this.props.opt.checkpoint_name, epoch_name)
}
changeSequence(field, sequence){
- console.log('got sequence', sequence)
+ console.log('load sequence', sequence)
this.props.actions.live.load_sequence(sequence)
}
seek(percentage){