@absolutejs/absolute 0.20.0-beta.20 → 0.20.0-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9191,6 +9191,20 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
9191
9191
  return "webp";
9192
9192
  }
9193
9193
  return "jpeg";
9194
+ }, sniffImageMime = (buffer) => {
9195
+ if (buffer.length < 12)
9196
+ return null;
9197
+ if (buffer[0] === 137 && buffer[1] === 80 && buffer[2] === 78)
9198
+ return "image/png";
9199
+ if (buffer[0] === 255 && buffer[1] === 216)
9200
+ return "image/jpeg";
9201
+ if (buffer[0] === 71 && buffer[1] === 73 && buffer[2] === 70)
9202
+ return "image/gif";
9203
+ if (buffer.toString("ascii", 0, 4) === "RIFF" && buffer.toString("ascii", 8, 12) === "WEBP")
9204
+ return "image/webp";
9205
+ if (buffer.toString("ascii", 4, 12) === "ftypavif")
9206
+ return "image/avif";
9207
+ return null;
9194
9208
  }, AVIF_QUALITY_OFFSET = 20, AVIF_EFFORT = 3, PNG_COMPRESSION_LEVEL = 9, optimizeWithBunImage = async (buffer, width, quality, format) => {
9195
9209
  const pipeline = new Bun.Image(buffer).resize(width, undefined, {
9196
9210
  withoutEnlargement: true
@@ -10361,5 +10375,5 @@ export {
10361
10375
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
10362
10376
  };
10363
10377
 
10364
- //# debugId=7F459B45B76DA26564756E2164756E21
10378
+ //# debugId=0318D343B2F494ED64756E2164756E21
10365
10379
  //# sourceMappingURL=browser.js.map