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