1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9916],{8505:(e,r,t)=>{"use strict";t.d(r,{A:()=>a});var n=t(27925),i=t(44573),o=t.n(i),s=t(14232);function a(e){var r=e.onFiles,t=e.disabled,i=void 0!==t&&t,a=e.stopPropagation,l=void 0===a||a,c=s.useRef(0),d=s.useState(0),u=(0,n.A)(d,2),h=u[0],p=u[1],x=s.useCallback(function(e){e.preventDefault(),l&&e.stopPropagation()},[l]),g=s.useCallback(function(e){x(e);var r,t=(null!=(r=e.dataTransfer)?r:{}).types;(!t||t.includes("Files"))&&(c.current+=1,p(c.current))},[x]),f=s.useCallback(function(e){x(e),e.dataTransfer&&(e.dataTransfer.dropEffect=i?"none":"copy")},[i,x]),m=s.useCallback(function(e){x(e),c.current>0&&(c.current-=1),p(c.current)},[x]),A=s.useCallback(function(e){x(e),c.current=0,p(0),i||r(e.dataTransfer?o()(e.dataTransfer.files):[])},[i,r,x]);return{isDragging:!i&&h>0,dropProps:s.useMemo(function(){return{onDragEnter:g,onDragOver:f,onDragLeave:m,onDrop:A}},[g,m,f,A])}}},18109:(e,r,t)=>{"use strict";t.d(r,{A:()=>g});var n=t(22795),i=t(44478),o=t(59860),s=t(36149),a=t.n(s),l=t(14232),c=t(99093),d=t(50147),u=t(4061),h=t(37876),p=["bg","children","sx","cozy"],x={white:{light:"common.white",dark:"primaryDark.900"},comfort:{light:"grey.50",dark:"primaryDark.900"},dim:{light:"primaryDark.700",dark:"primaryDark.700"},transparent:{light:"transparent",dark:"transparent"}};let g=l.forwardRef(function(e,r){var t=e.bg,s=void 0===t?"white":t,l=e.children,g=e.sx,f=e.cozy,m=void 0!==f&&f,A=(0,o.A)(e,p);return(0,h.jsx)(d.A,(0,n.A)((0,n.A)({ref:r},A),{},{sx:[function(e){return(0,n.A)((0,n.A)({},"gradient"===s?(0,n.A)({background:"linear-gradient(180deg, #FFF 0%, ".concat((e.vars||e).palette.primary[50]," 100%)")},e.applyDarkStyles({background:"linear-gradient(180deg, ".concat((e.vars||e).palette.primaryDark[900]," 0%, ").concat((0,u.X4)(e.palette.primary[900],.16)," 100%)")})):(0,n.A)({bgcolor:x[s].light},e.applyDarkStyles({bgcolor:x[s].dark}))),{},{py:m?{xs:6,sm:6,md:6}:{xs:4,sm:12,md:14},overflow:"hidden"})}].concat((0,i.A)(a()(g)?g:[g])),children:(0,h.jsx)(c.A,{children:l})}))})},18936:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});var n=t(3260),i=t(37876);let o=(0,n.A)((0,i.jsx)("path",{d:"M19.02 10v9H5V5h9V3H5.02c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9zM17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7l2.06.94zm-3.75.75L12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12z"}),"PhotoFilter")},20514:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});var n=t(3260),i=t(37876);let o=(0,n.A)((0,i.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"}),"Security")},54492:(e,r,t)=>{"use strict";t.d(r,{A:()=>u});var n=t(22795),i=t(14232),o=t(3936),s=t(4465),a=(t(82283),t(24278)),l=t.n(a),c=t(73092),d=t(37876);function u(){var e=(0,c.WD)(),r=(0,d.jsxs)(i.Fragment,{children:[e("banner.surveyPrefix"),"\xa0",(0,d.jsx)(s.A,{href:"https://www.surveymonkey.com/r/mui-developer-survey-2022?source=website",target:"_blank",color:"inherit",underline:"always",sx:{"&:hover":{opacity:.9}},children:e("banner.surveyLink")})]});return l().enable_website_banner?(0,d.jsx)(o.A,{sx:[{fontWeight:"medium"},function(e){return(0,n.A)({color:"#fff",p:"12px",display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"start",sm:"center"},justifyContent:"center",fontSize:e.typography.pxToRem(13),background:"linear-gradient(-90deg, ".concat((e.vars||e).palette.primary[700],", ").concat((e.vars||e).palette.primary[500]," 120%)")},e.applyDarkStyles({background:"linear-gradient(90deg, ".concat((e.vars||e).palette.primary[900],", ").concat((e.vars||e).palette.primary[600]," 120%)")}))}],children:r}):null}},61082:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});var n=t(73092);function i(e){return(0,n.WD)(e)}},62243:(e,r,t)=>{"use strict";t.d(r,{A:()=>x});var n,i=t(71435),o=t(93623);t(14232);var s=t(48230),a=t.n(s),l=t(50147),c=t(67682),d=t(3936),u=t(789),h=t(24525),p=t(37876);function x(e){var r=e.variant,t=(0,i.A)(),s=t.shrinkVariants[void 0===r?"default":r],x=(0,h.A)();return null===x?null:x?(0,p.jsx)(c.A,{variant:"outlined",sx:{p:3,bgcolor:"primary.50",borderColor:"primary.100",display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",gap:4,mt:4,mb:4},children:(0,p.jsxs)(l.A,{sx:{flex:1},children:[(0,p.jsx)(d.A,{variant:"overline",color:"#3E2F00",sx:{fontWeight:"bold"},children:t.batchProcessing}),(0,p.jsx)(d.A,{variant:"h4",gutterBottom:!0,sx:{fontWeight:"bold"},children:s.title}),(0,p.jsxs)(d.A,{variant:"body1",color:"#3E2F00",sx:{mb:3},children:[n||(n=(0,p.jsx)("strong",{children:"ShrinkFile"}))," ",s.description]}),(0,p.jsx)(u.A,{component:a(),variant:"contained",href:"/shrinkfile",color:"primary",children:t.learnShrink})]})}):(0,p.jsx)(o.A,{label:t.advertisement})}},75104:(e,r,t)=>{"use strict";t.d(r,{A:()=>p});var n,i=t(14232),o=t(50147),s=t(3936),a=t(16419),l=t(48230),c=t.n(l),d=t(89099),u=t(37876),h=[{name:"HEIC to JPG",url:"/heic-to-jpg"},{name:"HEIC to PNG",url:"/heic-to-png"},{name:"WebP to JPG",url:"/webp-to-jpg"},{name:"WebP to PNG",url:"/webp-to-png"},{name:"AVIF to JPG",url:"/avif-to-jpg"},{name:"GIF to WebP",url:"/gif-to-webp"},{name:"WebP to GIF",url:"/webp-to-gif"},{name:"GIF to MP4",url:"/gif-to-mp4"},{name:"WebP to MP4",url:"/webp-to-mp4"},{name:"JXL to JPG",url:"/jxl-to-jpg"},{name:"JPG to JXL",url:"/jpg-to-jxl"}];function p(){var e=(0,d.useRouter)(),r=i.useMemo(function(){return h.filter(function(r){return r.url!==e.pathname})},[e.pathname]);return(0,u.jsx)(o.A,{sx:{mb:3,display:"flex",gap:1.5,flexWrap:"wrap"},children:r.map(function(e,t){return(0,u.jsxs)(o.A,{sx:{display:"flex",gap:1.5,alignItems:"center"},children:[(0,u.jsx)(a.A,{component:c(),href:e.url,color:"primary",variant:"body2",underline:"hover",children:e.name}),t<r.length-1&&(n||(n=(0,u.jsx)(s.A,{variant:"body2",color:"text.disabled",children:"|"})))]},e.url)})})}},77145:(e,r,t)=>{"use strict";t.d(r,{A:()=>
1o});var n=t(3260),i=t(37876);let o=(0,n.A)((0,i.jsx)("path",{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66s.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21"}),"Bolt")},84396:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/avif-to-jpg",function(){return t(91813)}])},91813:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>e3});var n,i,o,s,a,l,c,d,u,h,p,x,g,f,m,A,v,j,b,y,w,F,I,k,P,S,C,z,J,W,G,V,U,L=t(61082);let R={en:JSON.parse('{"title":"Free AVIF to JPG Converter | Fast, Secure & High Quality","description":"Fast, free, and secure online AVIF to JPG converter. Transform modern AVIF images into the universally compatible JPEG format directly in your browser without uploading.","heading":"Convert AVIF to JPG Online"}'),"zh-Hans":JSON.parse('{"title":"AVIF转 JPG","description":"å¨çº¿å°AVIF转æ¢ä¸º JPG æ ¼å¼ï¼é¢è§å¹¶ä¸è½½è½¬æ¢ç»æã","heading":"AVIF转 JPG"}'),"zh-Hant":JSON.parse('{"title":"AVIFè½ JPG","description":"ç·ä¸å°AVIFè½æçº JPG æ ¼å¼ï¼é 覽並ä¸è¼è½æçµæã","heading":"AVIFè½ JPG"}'),ja:JSON.parse('{"title":"AVIF â JPG 夿","description":"AVIFã JPG å½¢å¼ã«å¤æããçµæããã¬ãã¥ã¼ãã¦ãã¦ã³ãã¼ãã§ãã¾ãã","heading":"AVIF â JPG 夿"}'),de:JSON.parse('{"title":"AVIF-zu-JPG-Konverter","description":"Wandle AVIF online in das JPG-Format um, pr\xfcfe die Vorschau und lade das Ergebnis herunter.","heading":"AVIF-zu-JPG-Konverter"}'),fr:JSON.parse('{"title":"Convertisseur AVIF en JPG","description":"Convertissez vos fichiers AVIF au format JPG, pr\xe9visualisez le r\xe9sultat et t\xe9l\xe9chargez-le.","heading":"Convertisseur AVIF en JPG"}'),ko:JSON.parse('{"title":"AVIF â JPG ë³í기","description":"AVIF íì¼ì ì¨ë¼ì¸ìì JPG íìì¼ë¡ ë³ííê³ ê²°ê³¼ë¥¼ 미리 본 í ë¤ì´ë¡ëíì¸ì.","heading":"AVIF â JPG ë³í기"}')};var O=t(3936),D=t(50147),B=t(79501),M=t(36728),_=t(16631),E=t(4318),T=t(30652),N=t(11040),H=t(27953),q=t(23934),X=t(34569),K=t(46204),Q=t(53482),Y=t(37235),Z=t(49570),$=t(43330),ee=t(462),er=t(77145),et=t(20514),en=t(18936),ei=t(34289),eo=t(83109),es=t(22795),ea=t(63857),el=t(44478),ec=t(86125),ed=t.n(ec),eu=t(44573),eh=t.n(eu),ep=t(30664),ex=t.n(ep),eg=t(49635),ef=t.n(eg),em=t(14232),eA=t(45105),ev=t.n(eA),ej=t(789),eb=t(32600),ey=t(83476),ew=t(76400),eF=t(43244),eI=t(25789),ek=t(52756),eP=t(90125),eS=t(14566),eC=t(92860),ez=t(67682),eJ=t(71296),eW=t(79823),eG=t(70151),eV=t(73703),eU=t(56030),eL=t(58432),eR=t(33433),eO=t(89123),eD=t(88099),eB=t(54492),eM=t(18109),e_=t(73104),eE=t(53036),eT=t(15708),eN=t(49579),eH=t(48230),eq=t.n(eH),eX=t(62243),eK=t(8505),eQ=t(47641),eY=t(37876);function eZ(e){var r,t,y,w=e.defaultFormat,F=e.title,I=e.heading,k=e.description,P=e.faq,S=e.extraContent,C=e.howTo,z=e.topContent,J=(0,em.useState)([]),W=J[0],G=J[1],V=(0,em.useState)(.9),U=V[0],L=V[1],R=(0,em.useState)(w),E=R[0],T=R[1],N=(0,em.useState)(!0),H=N[0],q=N[1],X=(0,em.useState)(!1),K=X[0],Q=X[1],Y=W.some(function(e){return"converting"===e.status}),Z=W.length>0,$=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024));return ed()((e/Math.pow(1024,t)).toFixed(r<0?0:r))+" "+["Bytes","KB","MB","GB"][t]},ee=function(e){var r=e.filter(function(e){return e.name.toLowerCase().endsWith(".avif")});if(0!==r.length){if(W.length+r.length>eN.BATCH_FILE_LIMIT)return void Q(!0);Q(!1);var t=r.map(function(e){return{id:Math.random().toString(36).substr(2,9),file:e,status:"idle",outputUrl:null,convertedSize:null,previewUrl:null,previewStatus:"idle"}});G(function(e){return[].concat((0,el.A)(e),(0,el.A)(t))})}};em.useEffect(function(){var e,r=(e=(0,ea.A)((0,eo.A)().mark(function e(){var r,t;return(0,eo.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=W.find(function(e){return"idle"===e.previewStatus})){e.next=3;break}return e.abrupt("return");case 3:G(function(e){return e.map(function(e){return e.id===r.id?(0,es.A)((0,es.A)({},e),{},{previewStatus:"generating"}):e})});try{t=URL.createObjectURL(r.file),G(function(e){return e.map(function(e){return e.id===r.id?(0,es.A)((0,es.A)({},e),{},{previewUrl:t,previewStatus:"done"}):e})})}catch(e){console.error("Preview generation failed",e),G(function(e){return e.map(function(e){return e.id===r.id?(0,es.A)((0,es.A)({},e),{},{previewStatus:"failed"}):e})})}case 5:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});W.some(function(e){return"idle"===e.previewStatus})&&r()},[W]);var er=function(e){G(function(r){var t=r.find(function(r){return r.id===e});return null!=t&&t.outputUrl&&URL.revokeObjectURL(t.outputUrl),null!=t&&t.previewUrl&&URL.revokeObjectURL(t.previewUrl),r.filter(function(r){return r.id!==e})})},et=(0,eK.A)({onFiles:function(e){e.length>0&&ee(e)}}),en=et.isDragging,ec=et.dropProps,eu=(r=(0,ea.A)((0,eo.A)().mark(function e(r){var t,n,i,o,s,a;return(0,eo.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return G(function(e){return e.map(function(e){return e.id===r.id?(0,es.A)((0,es.A)({},e),{},{status:"converting"}):e})}),e.prev=1,t=new Image,n=URL.createObjectURL(r.file),e.next=6,new(ex())(function(e,r){t.onload=e,t.onerror=r,t.src=n});case 6:if((i=document.createElement("canvas")).width=t.width,i.height=t.height,o=i.getContext("2d")){e.next=12;break}throw Error("Could not get canvas context");case 12:return"image/jpeg"===E&&(o.fillStyle="#FFFFFF",o.fillRect(0,0,i.width,i.height)),o.drawImage(t,0,0),e.next=16,new(ex())(function(e,r){i.toBlob(function(t){t?e(t):r
1(Error("Canvas to Blob failed"))},E,"image/jpeg"===E?U:void 0)});case 16:s=e.sent,a=URL.createObjectURL(s),URL.revokeObjectURL(n),G(function(e){return e.map(function(e){return e.id===r.id?(0,es.A)((0,es.A)({},e),{},{status:"success",outputUrl:a,convertedSize:s.size}):e})}),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(1),console.error(e.t0),G(function(e){return e.map(function(e){return e.id===r.id?(0,es.A)((0,es.A)({},e),{},{status:"error"}):e})});case 26:case"end":return e.stop()}},e,null,[[1,22]])})),function(e){return r.apply(this,arguments)}),ep=(t=(0,ea.A)((0,eo.A)().mark(function e(){var r,t,n,i;return(0,eo.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=W.filter(function(e){return"idle"===e.status||"error"===e.status}),t=(0,ei.A)(r),e.prev=2,t.s();case 4:if((n=t.n()).done){e.next=10;break}return i=n.value,e.next=8,eu(i);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}},e,null,[[2,12,15,18]])})),function(){return t.apply(this,arguments)}),eg=(y=(0,ea.A)((0,eo.A)().mark(function e(){var r,t,n,i,o;return(0,eo.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(window.JSZip){e.next=2;break}return e.abrupt("return");case 2:if(r=new window.JSZip,0!==(t=W.filter(function(e){return"success"===e.status&&e.outputUrl})).length){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,ex().all(t.map(function(){var e=(0,ea.A)((0,eo.A)().mark(function e(t){var n,i,o,s;return(0,eo.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.outputUrl){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,fetch(t.outputUrl);case 4:return n=e.sent,e.next=7,n.blob();case 7:i=e.sent,o="image/jpeg"===E?"jpg":"image/png"===E?"png":"gif",s=t.file.name.replace(/\.avif$/i,"")+"."+o,r.file(s,i);case 11:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}()));case 8:return e.next=10,r.generateAsync({type:"blob"});case 10:n=e.sent,i=URL.createObjectURL(n),(o=document.createElement("a")).href=i,o.download="converted_images_".concat(new Date().getTime(),".zip"),document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(i);case 19:case"end":return e.stop()}},e)})),function(){return y.apply(this,arguments)});return(0,eY.jsxs)(eD.A,{children:[(0,eY.jsx)(eO.A,{title:F,description:k,card:"/static/social-previews/home-preview.png",children:(0,eY.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ef()({"@context":"https://schema.org","@type":"WebApplication",name:F,operatingSystem:"Web Browser",applicationCategory:"MultimediaApplication",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},description:k})}})}),n||(n=(0,eY.jsx)(ev(),{src:"https://unpkg.com/[email protected]/dist/jszip.min.js",crossOrigin:"anonymous"})),i||(i=(0,eY.jsx)(eB.A,{})),o||(o=(0,eY.jsx)(eQ.A,{})),(0,eY.jsxs)("main",{id:"main-content",children:[(0,eY.jsx)(eM.A,{cozy:!0,children:(0,eY.jsxs)(D.A,{sx:{maxWidth:800,mx:"auto"},children:[(0,eY.jsx)(O.A,{variant:"h1",sx:{mb:2,fontSize:{xs:"2rem",sm:"2.5rem"}},children:I}),(0,eY.jsx)(O.A,{variant:"body1",color:"text.secondary",component:"p",sx:{mb:2},children:k}),z,K&&(0,eY.jsxs)(eE.A,{severity:"warning",sx:{mb:3,borderRadius:2},onClose:function(){return Q(!1)},children:[s||(s=(0,eY.jsx)(eT.A,{children:"Batch Limit Reached"}
1)),"Online tools are limited to ",a||(a=(0,eY.jsxs)("strong",{children:[eN.BATCH_FILE_LIMIT," files"]}))," per batch. For unlimited batch processing, high-speed hardware acceleration, and 4K support, please ",(0,eY.jsx)(eq(),{href:"/shrinkfile",style:{fontWeight:"bold",color:"inherit"},children:"Download ShrinkFile for macOS"}),"."]}),(0,eY.jsxs)(B.A,{spacing:4,sx:{mb:6},children:[(0,eY.jsx)(D.A,{sx:{width:"100%"},children:(0,eY.jsxs)(M.A,(0,es.A)((0,es.A)({variant:"outlined",sx:{p:{xs:4,md:8},textAlign:"center",borderStyle:"dashed",borderWidth:2,borderRadius:4,bgcolor:en?"primary.50":"background.paper",borderColor:en?"primary.main":"grey.300",cursor:"pointer",transition:"all 0.2s ease-in-out","&:hover":{borderColor:"primary.main",bgcolor:"action.hover"}}},ec),{},{component:"label",children:[(0,eY.jsx)("input",{hidden:!0,type:"file",multiple:!0,accept:".avif",onChange:function(e){e.target.files&&e.target.files.length>0&&ee(eh()(e.target.files))}}),(0,eY.jsx)(O.A,{variant:"h5",gutterBottom:!0,sx:{fontWeight:"bold"},children:en?"Drop files here":"Upload AVIF Images"}),(0,eY.jsxs)(O.A,{variant:"body1",color:"text.secondary",sx:{mb:3,maxWidth:400,mx:"auto"},children:["Drag & Drop multiple ",l||(l=(0,eY.jsx)("strong",{children:".AVIF"}))," photos here",c||(c=(0,eY.jsx)("br",{})),d||(d=(0,eY.jsx)(O.A,{component:"span",variant:"caption",color:"text.disabled",children:"(Batch conversion supported)"}))]}),u||(u=(0,eY.jsx)(ej.A,{variant:"contained",size:"large",component:"span",children:"Select Files"}))]}))}),Z&&(0,eY.jsxs)(D.A,{sx:{mt:2},children:[(0,eY.jsx)(M.A,{variant:"outlined",sx:{p:3,mb:4,bgcolor:"background.default"},children:(0,eY.jsxs)(_.A,{container:!0,spacing:3,sx:{alignItems:"center"},children:[(0,eY.jsx)(_.A,{size:{xs:12,md:5},children:(0,eY.jsxs)(eR.A,{fullWidth:!0,size:"small",children:[h||(h=(0,eY.jsx)(eL.A,{id:"format-select-label",children:"Output Format"})),(0,eY.jsxs)(eV.A,{labelId:"format-select-label",value:E,label:"Output Format",onChange:function(e){T(e.target.value)},children:[p||(p=(0,eY.jsx)(eU.A,{value:"image/jpeg",children:"JPG (Best for Photos)"})),x||(x=(0,eY.jsx)(eU.A,{value:"image/png",children:"PNG (Lossless, Transparency)"}))]})]})}),(0,eY.jsxs)(_.A,{size:{xs:12,md:7},children:[(0,eY.jsxs)(O.A,{gutterBottom:!0,variant:"caption",children:["Quality: ",Math.round(100*U),"% ","image/jpeg"!==E&&"(JPG only)"]}),(0,eY.jsxs)(B.A,{direction:"row",spacing:2,sx:{alignItems:"center"},children:[(0,eY.jsx)(eG.Ay,{value:U,onChange:function(e,r){L(r)},step:.05,min:.1,max:1,disabled:"image/jpeg"!==E,valueLabelDisplay:"auto",sx:{flex:1},valueLabelFormat:function(e){return"".concat(Math.round(100*e),"%")}}),(0,eY.jsx)(ew.A,{control:(0,eY.jsx)(ey.A,{checked:H,onChange:function(e){return q(e.target.checked)},size:"small"}),label:(0,eY.jsx)(O.A,{variant:"caption",sx:{ml:1},children:"Strip Metadata"})})]})]})]})}),(0,eY.jsx)(_.A,{container:!0,spacing:2,sx:{mb:4},children:W.map(function(e){return(0,eY.jsx)(_.A,{size:{xs:6,sm:4,md:3},children:(0,eY.jsxs)(ez.A,{variant:"outlined",sx:{position:"relative",overflow:"visible"},children:[(0,eY.jsx)(eW.A,{size:"small",onClick:function(){return er(e.id)},sx:{position:"absolute",top:-10,right:-10,bgcolor:"background.paper",border:"1px solid",borderColor:"divider",zIndex:1,"&:hover":{bgcolor:"error.50",color:"error.main"}},children:g||(g=(0,eY.jsx)(eP.A,{fontSize:"small"}))}),(0,eY.jsxs)(D.A,{sx:{height:140,bgcolor:"grey.100",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[e.outputUrl?(0,eY.jsx)(eJ.A,{component:"img",height:"140",image:e.outputUrl,alt:e.file.name,sx:{objectFit:"cover"}}):e.previewUrl?(0,eY.jsx)(eJ.A,{component:"img",height:"140",image:e.previewUrl,alt:e.file.name,sx:{objectFit:"cover",opacity:.7}}):(0,eY.jsx)(B.A,{sx:{alignItems:"center"},children:"generating"===e.previewStatus?(0,eY.jsx)(eF.A,{size:24,sx:{mb:1,color:"grey.500"}}):(0,eY.jsx)(eI.A,{color:"disabled",sx:{fontSize:48,opacity:.3}})}),"converting"===e.status&&(0,eY.jsx)(D.A,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,bgcolor:"rgba(255,255,255,0.8)",display:"flex",alignItems:"center",justifyContent:"center"},children:f||(f=(0,eY.jsx)(eF.A,{size:32}))}),"success"===e.status&&(0,eY.jsx)(D.A,{sx:{position:"absolute",bottom:8,right:8,bgcolor:"success.main",borderRadius:"50%",p:.5,display:"flex"}
1,children:(0,eY.jsx)(eS.A,{sx:{color:"white",fontSize:16}})}),"error"===e.status&&(0,eY.jsx)(D.A,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,bgcolor:"rgba(255,0,0,0.1)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,eY.jsx)(eC.A,{color:"error",sx:{fontSize:40}})})]}),(0,eY.jsxs)(D.A,{sx:{p:1.5},children:[(0,eY.jsx)(O.A,{variant:"caption",noWrap:!0,title:e.file.name,sx:{display:"block",fontWeight:"bold"},children:e.file.name}),(0,eY.jsxs)(B.A,{direction:"row",sx:{justifyContent:"space-between",alignItems:"center"},children:[(0,eY.jsx)(O.A,{variant:"caption",color:"text.secondary",children:$(e.file.size)}),e.convertedSize&&(0,eY.jsx)(O.A,{variant:"caption",color:"success.main",sx:{fontWeight:"bold"},children:$(e.convertedSize)})]}),e.outputUrl&&(0,eY.jsx)(ej.A,{fullWidth:!0,size:"small",variant:"outlined",sx:{mt:1,fontSize:"0.7rem"},href:e.outputUrl,download:e.file.name.replace(/\.avif$/i,"")+("image/jpeg"===E?".jpg":".png"),children:"Download"})]})]})},e.id)})}),(0,eY.jsxs)(B.A,{direction:"row",spacing:2,sx:{justifyContent:"center",alignItems:"center"},children:[(0,eY.jsx)(ej.A,{variant:"contained",size:"large",disabled:Y||!W.some(function(e){return"idle"===e.status||"error"===e.status}),onClick:ep,startIcon:Y&&(m||(m=(0,eY.jsx)(eF.A,{size:20,color:"inherit"}))),sx:{minWidth:200,py:1.5,fontSize:"1.1rem",borderRadius:2,boxShadow:"0 8px 16px rgba(0,0,0,0.1)"},children:Y?"Processing...":"Convert ".concat(W.filter(function(e){return"idle"===e.status}).length>0?W.filter(function(e){return"idle"===e.status}).length:"All"," Files")}),W.some(function(e){return"success"===e.status})&&(0,eY.jsx)(ej.A,{variant:"outlined",size:"large",onClick:eg,startIcon:A||(A=(0,eY.jsx)(ek.A,{})),sx:{minWidth:160,py:1.5,fontSize:"1.1rem",borderRadius:2},children:"Download All"}),(0,eY.jsx)(ej.A,{variant:"text",onClick:function(){return G([])},disabled:Y,children:"Clear All"})]})]})]}),v||(v=(0,eY.jsx)(eX.A,{variant:"avif"})),C,(0,eY.jsx)(D.A,{sx:{my:6},children:S}),P]})}),j||(j=(0,eY.jsx)(eb.A,{}))]}),b||(b=(0,eY.jsx)(e_.A,{}))]})}var e$=t(75104);function e0(){return(0,eY.jsxs)(D.A,{children:[(0,eY.jsx)(O.A,{variant:"h2",gutterBottom:!0,sx:{fontWeight:"bold",mb:3},children:"Why Use Our AVIF to JPG Converter?"}),(0,eY.jsxs)(_.A,{container:!0,spacing:4,children:[(0,eY.jsx)(_.A,{size:{xs:12,md:4},children:(0,eY.jsx)(M.A,{elevation:0,sx:{p:3,bgcolor:"primary.50",height:"100%",borderRadius:3},children:(0,eY.jsxs)(B.A,{spacing:2,children:[(0,eY.jsx)(D.A,{sx:{bgcolor:"white",width:48,height:48,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",color:"primary.main"},children:y||(y=(0,eY.jsx)(et.A,{}))}),(0,eY.jsx)(O.A,{variant:"h6",sx:{fontWeight:"bold"},children:"100% Private & Secure"}),w||(w=(0,eY.jsx)(O.A,{variant:"body2",color:"text.secondary",children:"Unlike server-side converters, your photos never leave your device. All processing happens locally in your browser, ensuring complete privacy. No uploads, no risks."}))]})})}),(0,eY.jsx)(_.A,{size:{xs:12,md:4},children:(0,eY.jsx)(M.A,{elevation:0,sx:{p:3,bgcolor:"success.50",height:"100%",borderRadius:3},children:(0,eY.jsxs)(B.A,{spacing:2,children:[(0,eY.jsx)(D.A,{sx:{bgcolor:"white",width:48,height:48,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",color:"success.main"},children:F||(F=(0,eY.jsx)(er.A,{}))}),(0,eY.jsx)(O.A,{variant:"h6",sx:{fontWeight:"bold"},children:"Lightning Fast"}),I||(I=(0,eY.jsx)(O.A,{variant:"body2",color:"text.secondary",children:"Convert AVIF to JPG instantly without waiting for file uploads or server queues. Our tool leverages your browser's power for immediate results, even with large files."}))]})})}),(0,eY.jsx)(_.A,{size:{xs:12,md:4},children:(0,eY.jsx)(M.A,{elevation:0,sx:{p:3,bgcolor:"warning.50",height:"100%",borderRadius:3},children:(0,eY.jsxs)(B.A,{spacing:2,children:[(0,eY.jsx)(D.A,{sx:{bgcolor:"white",width:48,height:48,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",color:"warning.main"},children:k||(k=(0,eY.jsx)(en.A,{}))}),(0,eY.jsx)(O.A,{variant:"h6",sx:{fontWeight:"bold"},children:"High Quality Output"}),P||(P=(0,eY.jsx)(O.A,{variant:"body2",color:"text.secondary",children:"Maintain the stunning quality of your photos. Customize compression levels to balance file size and clarity perfectly for sharing, printing, or storage."}))]})})})]})]})}function e1(){return(0,eY.jsxs)(D.A,{sx:{mt:8,mb:6},children:[(0,eY.jsx)(O.A,{variant:"h2",gutterBottom:!0,sx:{fontWeight:"bold",mb:3},children:"AVIF vs JPG: Which Should You Use?"}),(0,eY.jsx)(H.A,{component:M.A,variant:"outlined",sx:{borderRadius:2}
1,children:(0,eY.jsxs)(E.A,{"aria-label":"AVIF vs JPG comparison table",children:[(0,eY.jsx)(q.A,{children:(0,eY.jsxs)(X.A,{sx:{bgcolor:"grey.50"},children:[(0,eY.jsx)(N.A,{sx:{fontWeight:"bold"},children:"Feature"}),(0,eY.jsx)(N.A,{align:"center",sx:{fontWeight:"bold",color:"primary.main"},children:"AVIF"}),(0,eY.jsx)(N.A,{align:"center",sx:{fontWeight:"bold",color:"secondary.main"},children:"JPG"})]})}),S||(S=(0,eY.jsxs)(T.A,{children:[(0,eY.jsxs)(X.A,{children:[(0,eY.jsx)(N.A,{component:"th",scope:"row",children:"Optimization"}),(0,eY.jsx)(N.A,{align:"center",children:"Excellent (Up to 50% smaller)"}),(0,eY.jsx)(N.A,{align:"center",children:"Good"})]}),(0,eY.jsxs)(X.A,{children:[(0,eY.jsx)(N.A,{component:"th",scope:"row",children:"Transparency"}),(0,eY.jsx)(N.A,{align:"center",children:(0,eY.jsx)(K.A,{color:"success",fontSize:"small"})}),(0,eY.jsx)(N.A,{align:"center",children:(0,eY.jsx)(Q.A,{color:"error",fontSize:"small"})})]}),(0,eY.jsxs)(X.A,{children:[(0,eY.jsx)(N.A,{component:"th",scope:"row",children:"HDR Support"}),(0,eY.jsx)(N.A,{align:"center",children:(0,eY.jsx)(K.A,{color:"success",fontSize:"small"})}),(0,eY.jsx)(N.A,{align:"center",children:(0,eY.jsx)(Q.A,{color:"error",fontSize:"small"})})]}),(0,eY.jsxs)(X.A,{children:[(0,eY.jsx)(N.A,{component:"th",scope:"row",children:"Compatibility"}),(0,eY.jsx)(N.A,{align:"center",children:"Modern (Browsers/iOS/Android)"}),(0,eY.jsx)(N.A,{align:"center",children:"Universal (Works everywhere)"})]})]}))]})})]})}function e2(){return(0,eY.jsxs)(D.A,{sx:{my:6},children:[(0,eY.jsx)(O.A,{variant:"h2",gutterBottom:!0,sx:{fontWeight:"bold",mb:3},children:"How to Convert AVIF to JPG for Free"}),(0,eY.jsxs)(Y.A,{children:[(0,eY.jsxs)(Z.Ay,{alignItems:"flex-start",sx:{px:0},children:[(0,eY.jsx)($.A,{sx:{minWidth:32},children:(0,eY.jsx)(O.A,{variant:"h6",color:"text.secondary",sx:{fontWeight:"bold"},children:"1."})}),(0,eY.jsx)(ee.A,{primary:(0,eY.jsx)(O.A,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Upload AVIF Files"}),secondary:"Drag and drop your .avif photos directly into the browser window. You can select multiple files at once for batch conversion."})]}),(0,eY.jsxs)(Z.Ay,{alignItems:"flex-start",sx:{px:0},children:[(0,eY.jsx)($.A,{sx:{minWidth:32},children:(0,eY.jsx)(O.A,{variant:"h6",color:"text.secondary",sx:{fontWeight:"bold"},children:"2."})}),(0,eY.jsx)(ee.A,{primary:(0,eY.jsx)(O.A,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Customize Settings (Optional)"}),secondary:"Adjust the image quality slider to reduce file size, or pick PNG format if you want lossless output. Default is high-quality JPG."})]}),(0,eY.jsxs)(Z.Ay,{alignItems:"flex-start",sx:{px:0},children:[(0,eY.jsx)($.A,{sx:{minWidth:32},children:(0,eY.jsx)(O.A,{variant:"h6",color:"text.secondary",sx:{fontWeight:"bold"},children:"3."})}),(0,eY.jsx)(ee.A,{primary:(0,eY.jsx)(O.A,{variant:"h6",component:"span",sx:{fontWeight:"bold"},children:"Convert & Download"}),secondary:"Click 'Convert All' to process your images instantly. Once done, download individual files or get everything in a single ZIP archive."})]})]})]})}function e4(){return(0,eY.jsxs)(D.A,{sx:{mt:10},children:[(0,eY.jsx)(O.A,{variant:"h2",sx:{mb:4,fontSize:{xs:"1.5rem",sm:"2rem"},fontWeight:"bold"},children:"Frequently Asked Questions"}),(0,eY.jsxs)(B.A,{spacing:4,children:[(0,eY.jsxs)(D.A,{children:[(0,eY.jsx)(O.A,{variant:"h6",gutterBottom:!0,sx:{fontWeight:"bold"},children:"Why do I need to convert AVIF to JPG?"}),C||(C=(0,eY.jsxs)(O.A,{variant:"body1",color:"text.secondary",children:[(0,eY.jsx)("strong",{children:"AVIF"})," is a next-generation format that offers incredible compression. However, some older desktop applications, basic image viewers, and legacy devices do not yet support it. Our ",(0,eY.jsx)("strong",{children:"online AVIF to JPG converter"})," creates a universal format that opens perfectly everywhere."]}))]}),(0,eY.jsxs)(D.A,{children:[(0,eY.jsx)(O.A,{variant:"h6",gutterBottom:!0,sx:{fontWeight:"bold"},children:"Is it safe to use this tool for private photos?"}),z||(z=(0,eY.jsxs)(O.A,{variant:"body1",color:"text.secondary",children:["Absolutely! Our tool is ",(0,eY.jsx)("strong",{children:"100% private"})," as it runs entirely ",(0,eY.jsx)("strong",{children:"locally in your browser"})," using client-side JavaScript. Your images perform the conversion on your own hardware, so they are never uploaded to our servers."]}))]}),(0,eY.jsxs)(D.A,{children:[(0,eY.jsx)(O.A,{variant:"h6",gutterBottom:!0,sx:{fontWeight:"bold"},children:"Does JPG lose quality compared to AVIF?"}),J||(J=(0,eY.jsx)(O.A,{variant:"body1",color:"text.secondary",children:"Converting from AVIF to JPG will result in standard JPEG compression. Since AVIF was originally compressed, re-compressing to JPG might lose a little bit of pixel perfection, but keeping the slider at 90-100% preserves almost identical visual quality."}))]})]})]})}function e3(){var e=(0,L.A)(R);return(0,eY.jsx)(eZ,{defaultFormat:"image/jpeg",title:e("title"),heading:e("heading"),description:e("description"),topContent:W||(W=(0,eY.jsx)(e$.A,{})),faq:G||(G=(0,eY.jsx)(e4,{})),howTo:V||(V=(0,eY.jsx)(e2,{})),extraContent:U||(U=(0,eY.jsxs)(eY.Fragment,{children:[(0,eY.jsx)(e0,{}),(0,eY.jsx)(e1,{})]}))})}}},e=>{e.O(0,[397,9890,9857,151,4080,613,3476,1347,1650,8642,1229,636,6593,8792],()=>e(e.s=84396)),_N_E=e.O()}]);
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.