Add node version of MozJPEG encoder & decoder (#886)

* Add node version of MozJPEG

* Update paths for MozJPEG encoder
This commit is contained in:
Surma
2020-12-09 11:44:46 +00:00
committed by GitHub
parent a19e97b2ed
commit 12889d9d50
19 changed files with 284 additions and 1421 deletions

View File

@@ -10,9 +10,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import mozjpeg_enc, { MozJPEGModule } from 'codecs/mozjpeg_enc/mozjpeg_enc';
import mozjpeg_enc, { MozJPEGModule } from 'codecs/mozjpeg/enc/mozjpeg_enc';
import { EncodeOptions } from '../shared/meta';
import wasmUrl from 'url:codecs/mozjpeg_enc/mozjpeg_enc.wasm';
import wasmUrl from 'url:codecs/mozjpeg/enc/mozjpeg_enc.wasm';
import { initEmscriptenModule } from 'features/worker-utils';
let emscriptenModule: Promise<MozJPEGModule>;