From 17ae94eaa9452475d4e0ac9c4c29588968d0c0d5 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Thu, 19 Dec 2013 00:34:41 -0500 Subject: inline the worker --- js/gif-encode/worker.concat.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'js/gif-encode/worker.concat.js') diff --git a/js/gif-encode/worker.concat.js b/js/gif-encode/worker.concat.js index d26ba28..ab1867e 100644 --- a/js/gif-encode/worker.concat.js +++ b/js/gif-encode/worker.concat.js @@ -1,4 +1,7 @@ -/** +var workerURL = URL.createObjectURL( new Blob([ '(', + +function(){ +;/** * This class lets you encode animated GIF files * Base class : http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoder.htm * @author Kevin Weiner (original Java version - kweiner@fmsware.com) @@ -1463,5 +1466,11 @@ function encode (data) { frame_data: encoder.stream().getData() }); // on the page, search for the GIF89a to see the frame_index -}; +} + +;}.toString(), + +')()' ], { type: 'application/javascript' } ) ) +// var worker = new Worker( blobURL ); +// URL.revokeObjectURL( blobURL ); -- cgit v1.2.3-70-g09d2