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