[{"data":1,"prerenderedAt":574},["ShallowReactive",2],{"navigation":3,"/providers/sanity":180,"/providers/sanity-surround":569},[4,26,43,167],{"title":5,"path":6,"stem":7,"children":8,"page":25},"Get Started","/get-started","1.get-started",[9,13,17,21],{"title":10,"path":11,"stem":12},"Installation","/get-started/installation","1.get-started/1.installation",{"title":14,"path":15,"stem":16},"Configuration","/get-started/configuration","1.get-started/2.configuration",{"title":18,"path":19,"stem":20},"Providers","/get-started/providers","1.get-started/3.providers",{"title":22,"path":23,"stem":24},"Contributing","/get-started/contributing","1.get-started/4.contributing",false,{"title":27,"path":28,"stem":29,"children":30,"page":25},"Usage","/usage","2.usage",[31,35,39],{"title":32,"path":33,"stem":34},"\u003CNuxtImg>","/usage/nuxt-img","2.usage/1.nuxt-img",{"title":36,"path":37,"stem":38},"\u003CNuxtPicture>","/usage/nuxt-picture","2.usage/2.nuxt-picture",{"title":40,"path":41,"stem":42},"useImage()","/usage/use-image","2.usage/3.use-image",{"title":18,"path":44,"stem":45,"children":46,"page":25},"/providers","3.providers",[47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163],{"title":48,"path":49,"stem":50},"Aliyun","/providers/aliyun","3.providers/aliyun",{"title":52,"path":53,"stem":54},"AWS Amplify","/providers/aws-amplify","3.providers/aws-amplify",{"title":56,"path":57,"stem":58},"Bunny","/providers/bunny","3.providers/bunny",{"title":60,"path":61,"stem":62},"Caisy","/providers/caisy","3.providers/caisy",{"title":64,"path":65,"stem":66},"Cloudflare","/providers/cloudflare","3.providers/cloudflare",{"title":68,"path":69,"stem":70},"Cloudimage","/providers/cloudimage","3.providers/cloudimage",{"title":72,"path":73,"stem":74},"Cloudinary","/providers/cloudinary","3.providers/cloudinary",{"title":76,"path":77,"stem":78},"Contentful","/providers/contentful","3.providers/contentful",{"title":80,"path":81,"stem":82},"Directus","/providers/directus","3.providers/directus",{"title":84,"path":85,"stem":86},"Fastly","/providers/fastly","3.providers/fastly",{"title":88,"path":89,"stem":90},"Filerobot","/providers/filerobot","3.providers/filerobot",{"title":92,"path":93,"stem":94},"Glide","/providers/glide","3.providers/glide",{"title":96,"path":97,"stem":98},"Gumlet","/providers/gumlet","3.providers/gumlet",{"title":100,"path":101,"stem":102},"Hygraph","/providers/hygraph","3.providers/hygraph",{"title":104,"path":105,"stem":106},"ImageEngine","/providers/imageengine","3.providers/imageengine",{"title":108,"path":109,"stem":110},"ImageKit","/providers/imagekit","3.providers/imagekit",{"title":112,"path":113,"stem":114},"Imgix","/providers/imgix","3.providers/imgix",{"title":116,"path":117,"stem":118},"IPX","/providers/ipx","3.providers/ipx",{"title":120,"path":121,"stem":122},"Netlify","/providers/netlify","3.providers/netlify",{"title":124,"path":125,"stem":126},"Prepr","/providers/prepr","3.providers/prepr",{"title":128,"path":129,"stem":130},"Prismic","/providers/prismic","3.providers/prismic",{"title":132,"path":133,"stem":134},"Sanity","/providers/sanity","3.providers/sanity",{"title":136,"path":137,"stem":138},"Sirv","/providers/sirv","3.providers/sirv",{"title":140,"path":141,"stem":142},"Storyblok","/providers/storyblok","3.providers/storyblok",{"title":144,"path":145,"stem":146},"Strapi","/providers/strapi","3.providers/strapi",{"title":148,"path":149,"stem":150},"Twicpics","/providers/twicpics","3.providers/twicpics",{"title":152,"path":153,"stem":154},"Unsplash","/providers/unsplash","3.providers/unsplash",{"title":156,"path":157,"stem":158},"Uploadcare","/providers/uploadcare","3.providers/uploadcare",{"title":160,"path":161,"stem":162},"Vercel","/providers/vercel","3.providers/vercel",{"title":164,"path":165,"stem":166},"Weserv","/providers/weserv","3.providers/weserv",{"title":168,"path":169,"stem":170,"children":171,"page":25},"Advanced","/advanced","4.advanced",[172,176],{"title":173,"path":174,"stem":175},"Custom Provider","/advanced/custom-provider","4.advanced/1.custom-provider",{"title":177,"path":178,"stem":179},"Static Images","/advanced/static-images","4.advanced/2.static-images",{"id":181,"title":132,"body":182,"description":557,"extension":558,"links":559,"meta":565,"navigation":566,"path":133,"seo":567,"stem":134,"__hash__":568},"docs/3.providers/sanity.md",{"type":183,"value":184,"toc":548},"minimark",[185,196,204,316,321,329,334,337,427,432,440,486,508,513,520,529,544],[186,187,188,189,195],"p",{},"Integration between ",[190,191,132],"a",{"href":192,"rel":193},"https://www.sanity.io/docs/image-urls",[194],"nofollow"," and Nuxt Image.",[186,197,198,199,203],{},"To use this provider you just need to specify the ",[200,201,202],"code",{},"projectId"," of your project in Sanity.",[205,206,212],"pre",{"className":207,"code":208,"filename":209,"language":210,"meta":211,"style":211},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  image: {\n    sanity: {\n      projectId: 'yourprojectid',\n      // Defaults to 'production'\n      // dataset: 'development'\n    }\n  }\n})\n","nuxt.config.ts","ts","",[200,213,214,238,251,261,282,289,295,301,307],{"__ignoreMap":211},[215,216,219,223,226,230,234],"span",{"class":217,"line":218},"line",1,[215,220,222],{"class":221},"s7zQu","export",[215,224,225],{"class":221}," default",[215,227,229],{"class":228},"s2Zo4"," defineNuxtConfig",[215,231,233],{"class":232},"sTEyZ","(",[215,235,237],{"class":236},"sMK4o","{\n",[215,239,241,245,248],{"class":217,"line":240},2,[215,242,244],{"class":243},"swJcz","  image",[215,246,247],{"class":236},":",[215,249,250],{"class":236}," {\n",[215,252,254,257,259],{"class":217,"line":253},3,[215,255,256],{"class":243},"    sanity",[215,258,247],{"class":236},[215,260,250],{"class":236},[215,262,264,267,269,272,276,279],{"class":217,"line":263},4,[215,265,266],{"class":243},"      projectId",[215,268,247],{"class":236},[215,270,271],{"class":236}," '",[215,273,275],{"class":274},"sfazB","yourprojectid",[215,277,278],{"class":236},"'",[215,280,281],{"class":236},",\n",[215,283,285],{"class":217,"line":284},5,[215,286,288],{"class":287},"sHwdD","      // Defaults to 'production'\n",[215,290,292],{"class":217,"line":291},6,[215,293,294],{"class":287},"      // dataset: 'development'\n",[215,296,298],{"class":217,"line":297},7,[215,299,300],{"class":236},"    }\n",[215,302,304],{"class":217,"line":303},8,[215,305,306],{"class":236},"  }\n",[215,308,310,313],{"class":217,"line":309},9,[215,311,312],{"class":236},"}",[215,314,315],{"class":232},")\n",[317,318,320],"h2",{"id":319},"modifiers","Modifiers",[186,322,323,324,328],{},"The Sanity provider supports a number of additional modifiers. For a full list, check out the ",[190,325,327],{"href":192,"rel":326},[194],"Sanity documentation",". All of the modifiers mentioned in the Sanity docs are supported, with the following notes.",[330,331,333],"h3",{"id":332},"extra-convenience-modifiers","Extra convenience modifiers",[186,335,336],{},"The following more readable modifiers are also supported:",[338,339,340,350,358,366,374,386,397,408,419],"ul",{},[341,342,343,346,347],"li",{},[200,344,345],{},"background"," - equivalent to ",[200,348,349],{},"bg",[341,351,352,346,355],{},[200,353,354],{},"download",[200,356,357],{},"dl",[341,359,360,346,363],{},[200,361,362],{},"sharpen",[200,364,365],{},"sharp",[341,367,368,346,371],{},[200,369,370],{},"orientation",[200,372,373],{},"or",[341,375,376,379,380,346,383],{},[200,377,378],{},"minHeight"," or ",[200,381,382],{},"min-height",[200,384,385],{},"min-h",[341,387,388,379,391,346,394],{},[200,389,390],{},"maxHeight",[200,392,393],{},"max-height",[200,395,396],{},"max-h",[341,398,399,379,402,346,405],{},[200,400,401],{},"minWidth",[200,403,404],{},"min-width",[200,406,407],{},"min-w",[341,409,410,379,413,346,416],{},[200,411,412],{},"maxWidth",[200,414,415],{},"max-width",[200,417,418],{},"max-w",[341,420,421,346,424],{},[200,422,423],{},"saturation",[200,425,426],{},"sat",[330,428,430],{"id":429},"fit",[200,431,429],{},[186,433,434,435,439],{},"In addition to the values specified in the Sanity docs, which are respected, the following options from the ",[190,436,438],{"href":437},"/usage/nuxt-img#fit","default fit behavior"," are supported:",[338,441,442,451,463,471,479],{},[341,443,444,447,448],{},[200,445,446],{},"cover"," - this will behave like the Sanity modifier ",[200,449,450],{},"crop",[341,452,453,447,456,459,460,462],{},[200,454,455],{},"contain",[200,457,458],{},"fill",", and defaults to filling with a white background. (You can specify your own background color with the ",[200,461,345],{}," modifier.)",[341,464,465,447,468],{},[200,466,467],{},"inside",[200,469,470],{},"min",[341,472,473,447,476],{},[200,474,475],{},"outside",[200,477,478],{},"max",[341,480,481,447,483],{},[200,482,458],{},[200,484,485],{},"scale",[487,488,489],"tip",{},[186,490,491,492,495,496,499,500,503,504,507],{},"For compatibility with other providers, ",[200,493,494],{},"fit: fill"," is equivalent to the Sanity parameter ",[200,497,498],{},"?fit=scale",". If you need the Sanity ",[200,501,502],{},"?fit=fill"," behavior, use ",[200,505,506],{},"fit: contain"," instead.",[330,509,511],{"id":510},"format",[200,512,510],{},[186,514,515,516,519],{},"You can specify any of the formats suppored by Sanity. If this is omitted, the Sanity provider will default to ",[200,517,518],{},"auto=format",".",[330,521,523,525,526],{"id":522},"crop-and-hotspot",[200,524,450],{}," and ",[200,527,528],{},"hotspot",[186,530,531,532,535,536,539,540,543],{},"You can pass your Sanity crop and hotspot image data as modifiers and Nuxt Image will correctly generate the ",[200,533,534],{},"rect",", ",[200,537,538],{},"fp-x",", and ",[200,541,542],{},"fp-y"," parameters for you.",[545,546,547],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":211,"searchDepth":240,"depth":240,"links":549},[550],{"id":319,"depth":240,"text":320,"children":551},[552,553,554,555],{"id":332,"depth":253,"text":333},{"id":429,"depth":253,"text":429},{"id":510,"depth":253,"text":510},{"id":522,"depth":253,"text":556},"crop and hotspot","Nuxt Image has first class integration with Sanity.","md",[560],{"label":561,"icon":562,"to":563,"size":564},"Source","i-simple-icons-github","https://github.com/nuxt/image/blob/main/src/runtime/providers/sanity.ts","xs",{},true,{"title":132,"description":557},"tZMSZdCEza5wR31cSWw9HpttKUmDLftA2D66ZGw794g",[570,572],{"title":128,"path":129,"stem":130,"description":571,"children":-1},"Nuxt Image has first class integration with Prismic.",{"title":136,"path":137,"stem":138,"description":573,"children":-1},"Nuxt Image integration with Sirv media management, transformation and delivery platform.",1750165851925]