[{"data":1,"prerenderedAt":578},["ShallowReactive",2],{"navigation":3,"-providers-sanity":184,"-providers-sanity-surround":573},[4,26,43,171],{"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,167],{"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},"Shopify","/providers/shopify","3.providers/shopify",{"title":140,"path":141,"stem":142},"Sirv","/providers/sirv","3.providers/sirv",{"title":144,"path":145,"stem":146},"Storyblok","/providers/storyblok","3.providers/storyblok",{"title":148,"path":149,"stem":150},"Strapi","/providers/strapi","3.providers/strapi",{"title":152,"path":153,"stem":154},"Twicpics","/providers/twicpics","3.providers/twicpics",{"title":156,"path":157,"stem":158},"Unsplash","/providers/unsplash","3.providers/unsplash",{"title":160,"path":161,"stem":162},"Uploadcare","/providers/uploadcare","3.providers/uploadcare",{"title":164,"path":165,"stem":166},"Vercel","/providers/vercel","3.providers/vercel",{"title":168,"path":169,"stem":170},"Weserv","/providers/weserv","3.providers/weserv",{"title":172,"path":173,"stem":174,"children":175,"page":25},"Advanced","/advanced","4.advanced",[176,180],{"title":177,"path":178,"stem":179},"Custom Provider","/advanced/custom-provider","4.advanced/1.custom-provider",{"title":181,"path":182,"stem":183},"Static Images","/advanced/static-images","4.advanced/2.static-images",{"id":185,"title":132,"body":186,"description":561,"extension":562,"links":563,"meta":569,"navigation":570,"path":133,"seo":571,"stem":134,"__hash__":572},"docs/3.providers/sanity.md",{"type":187,"value":188,"toc":552},"minimark",[189,200,208,320,325,333,338,341,431,436,444,490,512,517,524,533,548],[190,191,192,193,199],"p",{},"Integration between ",[194,195,132],"a",{"href":196,"rel":197},"https://www.sanity.io/docs/image-urls",[198],"nofollow"," and Nuxt Image.",[190,201,202,203,207],{},"To use this provider you just need to specify the ",[204,205,206],"code",{},"projectId"," of your project in Sanity.",[209,210,216],"pre",{"className":211,"code":212,"filename":213,"language":214,"meta":215,"style":215},"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","",[204,217,218,242,255,265,286,293,299,305,311],{"__ignoreMap":215},[219,220,223,227,230,234,238],"span",{"class":221,"line":222},"line",1,[219,224,226],{"class":225},"s7zQu","export",[219,228,229],{"class":225}," default",[219,231,233],{"class":232},"s2Zo4"," defineNuxtConfig",[219,235,237],{"class":236},"sTEyZ","(",[219,239,241],{"class":240},"sMK4o","{\n",[219,243,245,249,252],{"class":221,"line":244},2,[219,246,248],{"class":247},"swJcz","  image",[219,250,251],{"class":240},":",[219,253,254],{"class":240}," {\n",[219,256,258,261,263],{"class":221,"line":257},3,[219,259,260],{"class":247},"    sanity",[219,262,251],{"class":240},[219,264,254],{"class":240},[219,266,268,271,273,276,280,283],{"class":221,"line":267},4,[219,269,270],{"class":247},"      projectId",[219,272,251],{"class":240},[219,274,275],{"class":240}," '",[219,277,279],{"class":278},"sfazB","yourprojectid",[219,281,282],{"class":240},"'",[219,284,285],{"class":240},",\n",[219,287,289],{"class":221,"line":288},5,[219,290,292],{"class":291},"sHwdD","      // Defaults to 'production'\n",[219,294,296],{"class":221,"line":295},6,[219,297,298],{"class":291},"      // dataset: 'development'\n",[219,300,302],{"class":221,"line":301},7,[219,303,304],{"class":240},"    }\n",[219,306,308],{"class":221,"line":307},8,[219,309,310],{"class":240},"  }\n",[219,312,314,317],{"class":221,"line":313},9,[219,315,316],{"class":240},"}",[219,318,319],{"class":236},")\n",[321,322,324],"h2",{"id":323},"modifiers","Modifiers",[190,326,327,328,332],{},"The Sanity provider supports a number of additional modifiers. For a full list, check out the ",[194,329,331],{"href":196,"rel":330},[198],"Sanity documentation",". All of the modifiers mentioned in the Sanity docs are supported, with the following notes.",[334,335,337],"h3",{"id":336},"extra-convenience-modifiers","Extra convenience modifiers",[190,339,340],{},"The following more readable modifiers are also supported:",[342,343,344,354,362,370,378,390,401,412,423],"ul",{},[345,346,347,350,351],"li",{},[204,348,349],{},"background"," - equivalent to ",[204,352,353],{},"bg",[345,355,356,350,359],{},[204,357,358],{},"download",[204,360,361],{},"dl",[345,363,364,350,367],{},[204,365,366],{},"sharpen",[204,368,369],{},"sharp",[345,371,372,350,375],{},[204,373,374],{},"orientation",[204,376,377],{},"or",[345,379,380,383,384,350,387],{},[204,381,382],{},"minHeight"," or ",[204,385,386],{},"min-height",[204,388,389],{},"min-h",[345,391,392,383,395,350,398],{},[204,393,394],{},"maxHeight",[204,396,397],{},"max-height",[204,399,400],{},"max-h",[345,402,403,383,406,350,409],{},[204,404,405],{},"minWidth",[204,407,408],{},"min-width",[204,410,411],{},"min-w",[345,413,414,383,417,350,420],{},[204,415,416],{},"maxWidth",[204,418,419],{},"max-width",[204,421,422],{},"max-w",[345,424,425,350,428],{},[204,426,427],{},"saturation",[204,429,430],{},"sat",[334,432,434],{"id":433},"fit",[204,435,433],{},[190,437,438,439,443],{},"In addition to the values specified in the Sanity docs, which are respected, the following options from the ",[194,440,442],{"href":441},"/usage/nuxt-img#fit","default fit behavior"," are supported:",[342,445,446,455,467,475,483],{},[345,447,448,451,452],{},[204,449,450],{},"cover"," - this will behave like the Sanity modifier ",[204,453,454],{},"crop",[345,456,457,451,460,463,464,466],{},[204,458,459],{},"contain",[204,461,462],{},"fill",", and defaults to filling with a white background. (You can specify your own background color with the ",[204,465,349],{}," modifier.)",[345,468,469,451,472],{},[204,470,471],{},"inside",[204,473,474],{},"min",[345,476,477,451,480],{},[204,478,479],{},"outside",[204,481,482],{},"max",[345,484,485,451,487],{},[204,486,462],{},[204,488,489],{},"scale",[491,492,493],"tip",{},[190,494,495,496,499,500,503,504,507,508,511],{},"For compatibility with other providers, ",[204,497,498],{},"fit: fill"," is equivalent to the Sanity parameter ",[204,501,502],{},"?fit=scale",". If you need the Sanity ",[204,505,506],{},"?fit=fill"," behavior, use ",[204,509,510],{},"fit: contain"," instead.",[334,513,515],{"id":514},"format",[204,516,514],{},[190,518,519,520,523],{},"You can specify any of the formats suppored by Sanity. If this is omitted, the Sanity provider will default to ",[204,521,522],{},"auto=format",".",[334,525,527,529,530],{"id":526},"crop-and-hotspot",[204,528,454],{}," and ",[204,531,532],{},"hotspot",[190,534,535,536,539,540,543,544,547],{},"You can pass your Sanity crop and hotspot image data as modifiers and Nuxt Image will correctly generate the ",[204,537,538],{},"rect",", ",[204,541,542],{},"fp-x",", and ",[204,545,546],{},"fp-y"," parameters for you.",[549,550,551],"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":215,"searchDepth":244,"depth":244,"links":553},[554],{"id":323,"depth":244,"text":324,"children":555},[556,557,558,559],{"id":336,"depth":257,"text":337},{"id":433,"depth":257,"text":433},{"id":514,"depth":257,"text":514},{"id":526,"depth":257,"text":560},"crop and hotspot","Nuxt Image has first class integration with Sanity.","md",[564],{"label":565,"icon":566,"to":567,"size":568},"Source","i-simple-icons-github","https://github.com/nuxt/image/blob/main/src/runtime/providers/sanity.ts","xs",{},true,{"title":132,"description":561},"tZMSZdCEza5wR31cSWw9HpttKUmDLftA2D66ZGw794g",[574,576],{"title":128,"path":129,"stem":130,"description":575,"children":-1},"Nuxt Image has first class integration with Prismic.",{"title":136,"path":137,"stem":138,"description":577,"children":-1},"Nuxt Image integration with Shopify CDN.",1753877275030]