17 lines
684 B
JavaScript
17 lines
684 B
JavaScript
// Metro module 4854 (f4855).
|
|
import { deferInit, getBase64Image } from "./Module4802";
|
|
let c2988_2 = [6, 7, 99];
|
|
export default {
|
|
get: function get(a0, a1, a2) {
|
|
if ((a1 ? a1.Compression === void 0 || c2988_2.includes(a1.Compression.value) : a1) && a1.JPEGInterchangeFormat && a1.JPEGInterchangeFormat.value && a1.JPEGInterchangeFormatLength && a1.JPEGInterchangeFormatLength.value) {
|
|
a1.type = "image/jpeg";
|
|
const r17 = a2 + a1.JPEGInterchangeFormat.value;
|
|
a1.image = a0.buffer.slice(r17, r17 + a1.JPEGInterchangeFormatLength.value);
|
|
deferInit(a1, "base64", function() {
|
|
return getBase64Image(this.image);
|
|
});
|
|
}
|
|
return a1;
|
|
}
|
|
};
|