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