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