1import{u as M}from"./vue.f36acd1f.df9752c5.js";import{a as v,a4 as x,G as F,o as I,c as P,u as k,q}from"./entry.d679e6c0.js";import z from"./pageTemplate.cfe6f159.js";import{c as g}from"./canvas.a35d6efb.js";import{m as B}from"./module.ef62d7ab.js";import"./index.vue.ffe92c10.js";import"./index.43fcf2ec.js";import"./size-format.8417d15d.js";import"./index.e186ed89.js";import"./index.vue.26858893.js";import"./index.ea639fc3.js";import"./account.b272236d.js";import"./index.dc79ce50.js";import"./storage.63dc09c8.js";import"./index.vue.bc6379d2.js";import"./sys.839487d8.js";import"./index.1bc9b684.js";import"./index.ead2fc9c.js";import"./index.vue.ba60de6b.js";import"./index.aed7540b.js";import"./c-layout.vue.5f8fd99a.js";import"./base-layout.vue.267ffe28.js";import"./ANALYSIS.fa12025c.js";import"./index.37adf04a.js";import"./combined-data.2297fb70.js";import"./index.2218dfee.js";import"./nuxt-link.e820e068.js";import"./index.87e7e444.js";import"./sideBarAnchor.vue.e157893e.js";import"./download-modal.e31e2400.js";import"./index.c2694c41.js";import"./icon_add_img.1d5514d6.js";import"./jszip.min.92df2066.js";import"./sideBar.vue.f5831a99.js";import"./img-min.76da3c25.js";import"./make.e0f97b17.js";const N=v({__name:"webpMin",setup(j){M({title:"å¨çº¿webpå¾çå缩- å
è´¹å¾çå缩工å
·",meta:[{name:"description",content:"使ç¨å¨çº¿webpå¾çå缩工å
·ï¼æ¨å¯ä»¥å¿«éè½»æ¾å°å缩å¾ç大å°ï¼ä½¿ç½ç«å è½½æ´å¿«ãå
费使ç¨ï¼æ éå®è£
软件ã"},{name:"keywords",content:"å¨çº¿webpå¾çå缩, å
è´¹å¾çå缩工å
·, å¨çº¿å¾çå缩, webpæ ¼å¼å缩"}],script:[{src:"/s/lib/webp/we.js",type:"module"}]});const{$loading:l}=x(),w=/webp$/i,f=B.IMG.MIN.WEBP_MIN;F(()=>{});const c={7:95,6:92,5:85,4:70,3:50,2:30,1:10};async function b(o,i){try{const r=await webp_enc(),t=await g.getFileImageData(o);if(!t)return null;const s=r.encode(t.data,t.width,t.height,{quality:i,target_size:0,target_PSNR:0,method:4,sns_strength:50,filter_strength:60,filter_sharpness:0,filter_type:1,partitions:0,segments:4,pass:1,show_compressed:0,preprocessing:0,autofilter:0,partition_limit:0,alpha_compression:1,alpha_filtering:1,alpha_quality:100,lossless:0,exact:0,image_hint:0,emulate_jpeg_size:0,thread_level:0,low_memory:0,near_lossless:100,use_delta_palette:0,use_sharp_yuv:0}),a=new File([s],o.name,{type:"image/webp"});return Promise.resolve(a)}catch(r){return Promise.reject(r)}}async function y(o){try{let{fileList:i,quality:r,maxWidth:t,percentSize:s}=o;const a=c[r]||c[7];let p=i.map(e=>({file:e.file,name:e.file.name,fid:e.fid,width:e.width,height:e.height}));l.show({message:"æ£å¨å缩... (0%)",percentage:0});const u=[];for(let e=0;e<p.length;e++){const m=p[e],_=+((e+1)/p.length).toFixed(2);l.show({message:`æ£å¨å缩... (${~~(_*100)}%)`,percentage:~~(_*100)});let n=m.file;if(t||s){const h=t||~~(s/100*m.width)||1;h!==m.width&&(n=await g.resizeImgFile(n,h))}const d=await b(n,a);d&&u.push(d)}return Promise.resolve(u)}catch(i){return Promise.resolve(i)}}return(o,i)=>(I(),P(z,{accept:"image/webp",fileFormat:"WEBP",helpText:"æä¸æ¯æå¨æ webp å¾ç",defaultQuality:7,fileReg:w,pageModule:k(f),makeFn:y},null,8,["pageModule"]))}});const he=q(N,[["__scopeId","data-v-75daab8b"]]);export{he as default};
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.