PageSourceSearch

https://www.svgai.org/_next/static/chunks/5864.8f40b53d734bdc6a.js

js svgai.org collected 2026-10-04 08:38:05 UTC 1,564 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5864],{53483:(e,t,i)=>{i.d(t,{svgToGifHandler:()=>s});var o=i(10651),r=i(119),a=i(83433),n=i(44134).Buffer;let s=async(e,t={})=>{try{!function(e){let t="string"==typeof e?n.from(e,"utf-8"):e,i=(0,r.nJ)(t,{allowedFormats:["svg"],maxSize:0x3200000});if(!i.isValid)throw new o.OD(i.error||"Invalid SVG file");let a=t.toString("utf-8").slice(0,1e3);if(!a.includes("<svg")&&!a.includes("<?xml"))throw new o.OD("File does not appear to be a valid SVG")}(e);let i="string"==typeof e?n.from(e,"utf-8"):e,s={width:t.width,height:t.height,preserveAspectRatio:"max"===t.fit,onProgress:t.onProgress,options:{fit:t.fit||"max",strip:!1!==t.strip,pixel_density:t.pixelDensity||300}},f=null;if("convertio"===t.converter||"auto"===t.converter||"auto"===t.converter)try{if((f=await (0,a.b2)(i,"svg","gif","image.svg",s)).success&&f.data){let e="string"==typeof f.data?n.from(f.data,"base64"):f.data;return{success:!0,data:e,mimeType:"image/gif",metadata:{format:"gif",method:"convertio",size:e.length,originalFormat:"svg",width:t.width,height:t.height,fit:t.fit||"max",pixelDensity:t.pixelDensity||300}}}}catch(e){throw console.error("Convertio conversion failed:",e),new o.zx(`SVG to GIF conversion failed: ${e.message}`,"SVG_TO_GIF_FAILED")}throw new o.zx("No conversion service available for SVG to GIF","NO_CONVERTER_AVAILABLE")}catch(e){if(e instanceof o.zx||e instanceof o.OD)throw e;throw new o.zx(`Failed to convert SVG to GIF: ${e instanceof Error?e.message:"Unknown error"}`,"SVG_TO_GIF_FAILED")}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.