[{"data":1,"prerenderedAt":360},["ShallowReactive",2],{"/docs/flags-reference":3,"/docs/flags-reference-surround":351},{"id":4,"title":5,"body":6,"description":343,"extension":344,"meta":345,"navigation":346,"path":347,"seo":348,"stem":349,"__hash__":350},"docs/docs/5.flags-reference.md","Flags Reference",{"type":7,"value":8,"toc":336},"minimark",[9,13,17,22,236,240,282,286],[10,11,5],"h1",{"id":12},"flags-reference",[14,15,16],"p",{},"All flags are optional. Shrinkr has sensible defaults for every setting.",[18,19,21],"h2",{"id":20},"full-table","Full Table",[23,24,25,47],"table",{},[26,27,28],"thead",{},[29,30,31,35,38,41,44],"tr",{},[32,33,34],"th",{},"Flag",[32,36,37],{},"Short",[32,39,40],{},"Type",[32,42,43],{},"Default",[32,45,46],{},"Description",[48,49,50,87,110,132,154,174,197,217],"tbody",{},[29,51,52,59,64,67,72],{},[53,54,55],"td",{},[56,57,58],"code",{},"--format",[53,60,61],{},[56,62,63],{},"-f",[53,65,66],{},"string",[53,68,69],{},[56,70,71],{},"webp",[53,73,74,75,77,78,77,81,77,84],{},"Output format: ",[56,76,71],{},", ",[56,79,80],{},"avif",[56,82,83],{},"jpeg",[56,85,86],{},"png",[29,88,89,94,99,102,107],{},[53,90,91],{},[56,92,93],{},"--size",[53,95,96],{},[56,97,98],{},"-s",[53,100,101],{},"int",[53,103,104],{},[56,105,106],{},"500",[53,108,109],{},"Target file size in KB",[29,111,112,117,122,124,129],{},[53,113,114],{},[56,115,116],{},"--output",[53,118,119],{},[56,120,121],{},"-o",[53,123,66],{},[53,125,126],{},[56,127,128],{},"compressed",[53,130,131],{},"Output folder path",[29,133,134,139,144,146,151],{},[53,135,136],{},[56,137,138],{},"--quality",[53,140,141],{},[56,142,143],{},"-q",[53,145,101],{},[53,147,148],{},[56,149,150],{},"85",[53,152,153],{},"Initial quality (1–100) for first compression attempt",[29,155,156,161,166,168,171],{},[53,157,158],{},[56,159,160],{},"--workers",[53,162,163],{},[56,164,165],{},"-w",[53,167,101],{},[53,169,170],{},"CPU count",[53,172,173],{},"Number of concurrent workers (auto-detected)",[29,175,176,181,186,189,194],{},[53,177,178],{},[56,179,180],{},"--recursive",[53,182,183],{},[56,184,185],{},"-r",[53,187,188],{},"bool",[53,190,191],{},[56,192,193],{},"false",[53,195,196],{},"Also scan subdirectories",[29,198,199,204,207,209,214],{},[53,200,201],{},[56,202,203],{},"--min-quality",[53,205,206],{},"—",[53,208,101],{},[53,210,211],{},[56,212,213],{},"60",[53,215,216],{},"Quality floor — compression won't go below this",[29,218,219,224,226,228,233],{},[53,220,221],{},[56,222,223],{},"--max-quality",[53,225,206],{},[53,227,101],{},[53,229,230],{},[56,231,232],{},"90",[53,234,235],{},"Quality ceiling — compression won't exceed this",[18,237,239],{"id":238},"notes","Notes",[241,242,243,253,261,266,274],"ul",{},[244,245,246,248,249,252],"li",{},[56,247,160],{}," defaults to ",[56,250,251],{},"runtime.NumCPU()"," — the number of logical CPU cores on your machine. On Apple Silicon M-series chips this is typically 8–12. You rarely need to change this.",[244,254,255,257,258,260],{},[56,256,203],{}," and ",[56,259,223],{}," define the search range for the binary search algorithm. A narrower range means fewer iterations but may not hit the target size.",[244,262,263,265],{},[56,264,138],{}," is the starting point. If the image is already under the target size at this quality, Shrinkr stops immediately (no binary search needed).",[244,267,268,270,271,273],{},[56,269,180],{}," (",[56,272,185],{},") scans all subdirectories. The output folder mirrors the input directory structure.",[244,275,276,278,279,281],{},[56,277,203],{}," must be less than or equal to ",[56,280,223],{},", or Shrinkr will exit with an error.",[18,283,285],{"id":284},"format-notes","Format Notes",[23,287,288,298],{},[26,289,290],{},[29,291,292,295],{},[32,293,294],{},"Format",[32,296,297],{},"Characteristics",[48,299,300,309,318,327],{},[29,301,302,306],{},[53,303,304],{},[56,305,71],{},[53,307,308],{},"Best default. Excellent quality-to-size ratio. Supported by all modern browsers.",[29,310,311,315],{},[53,312,313],{},[56,314,80],{},[53,316,317],{},"Smaller files than WebP but slower to encode. Good for batch jobs where speed isn't critical.",[29,319,320,324],{},[53,321,322],{},[56,323,83],{},[53,325,326],{},"Maximum compatibility. Use for clients or platforms that don't support WebP.",[29,328,329,333],{},[53,330,331],{},[56,332,86],{},[53,334,335],{},"Lossless. File size depends entirely on image complexity — target size may not be reachable for complex images.",{"title":337,"searchDepth":338,"depth":338,"links":339},"",2,[340,341,342],{"id":20,"depth":338,"text":21},{"id":238,"depth":338,"text":239},{"id":284,"depth":338,"text":285},"All CLI flags, short forms, defaults, and descriptions.","md",{},{"title":5},"/docs/flags-reference",{"title":5,"description":343},"docs/5.flags-reference","FwUOkbG4e9ks_L8mNBAsHV1VOBC7-APLdqwS1pHaeWc",[352,356],{"title":353,"path":354,"stem":355,"children":-1},"Direct CLI Mode","/docs/cli-mode","docs/4.cli-mode",{"title":357,"path":358,"stem":359,"children":-1},"Supported Formats","/docs/supported-formats","docs/6.supported-formats",1777384536110]