Merge pull request #9260 from Snuffleupagus/rm-JpegStream.getBytes
Attempt to remove the special `JpegStream.getBytes` method and utilize the regular `DecodeStream` one instead
This commit is contained in:
commit
095c63cc25
@ -100,11 +100,6 @@ let JpegStream = (function JpegStreamClosure() {
|
||||
this.eof = true;
|
||||
};
|
||||
|
||||
JpegStream.prototype.getBytes = function(length) {
|
||||
this.readBlock();
|
||||
return this.buffer;
|
||||
};
|
||||
|
||||
JpegStream.prototype.getIR = function(forceDataSchema = false) {
|
||||
return createObjectURL(this.bytes, 'image/jpeg', forceDataSchema);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user