You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, you need to open a file of 100 slides that need to be processed through the decoder jpeg2000.
So every time you download decode-jpeg2000 and then 'jpx.js', 'util.js', 'arithmetic_decoder.js' from importScritps.
It seems to me that this is not very good. It is a lot of traffic and you need to store decoders somewhere in the internet.
So idea:
Merge decoder and all it's importScritps in one file
Squeeze it
Import it as string const jpeg2000 = require('raw-loader!./jpeg2000.js');
Convert to Blob: const jpeg2000Blob = new Blob([jpeg2000], {type: 'application/javascript'})
Create URL from Blob: URL.createObjectURL(jpeg2000Blob)
Use this result URL as decoderScripts for library.
Then everything will work offline
The text was updated successfully, but these errors were encountered:
For example, you need to open a file of 100 slides that need to be processed through the decoder jpeg2000.
So every time you download decode-jpeg2000 and then 'jpx.js', 'util.js', 'arithmetic_decoder.js' from importScritps.
It seems to me that this is not very good. It is a lot of traffic and you need to store decoders somewhere in the internet.
So idea:
const jpeg2000 = require('raw-loader!./jpeg2000.js');
const jpeg2000Blob = new Blob([jpeg2000], {type: 'application/javascript'})
URL.createObjectURL(jpeg2000Blob)
Then everything will work offline
The text was updated successfully, but these errors were encountered: