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