[{"data":1,"prerenderedAt":446},["ShallowReactive",2],{"docs-navigation":3,"docs:\u002Fdocs\u002Flibraries\u002Fs3":235,"docs-surround:\u002Fdocs\u002Flibraries\u002Fs3":441},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,13,37,55,70,128,146,191,217],{"title":10,"path":6,"stem":11,"icon":12},"Hubstruct documentation","docs\u002Findex","book-open",{"title":14,"icon":15,"path":16,"stem":17,"children":18,"page":36},"Getting started","rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[19,24,28,32],{"title":20,"path":21,"stem":22,"icon":23},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",null,{"title":25,"path":26,"stem":27,"icon":23},"Requirements","\u002Fdocs\u002Fgetting-started\u002Frequirements","docs\u002F1.getting-started\u002F2.requirements",{"title":29,"path":30,"stem":31,"icon":23},"Quick start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F3.quick-start",{"title":33,"path":34,"stem":35,"icon":23},"First steps","\u002Fdocs\u002Fgetting-started\u002Ffirst-steps","docs\u002F1.getting-started\u002F4.first-steps",false,{"title":38,"icon":39,"path":40,"stem":41,"children":42,"page":36},"Concepts","lightbulb","\u002Fdocs\u002Fconcepts","docs\u002F2.concepts",[43,47,51],{"title":44,"path":45,"stem":46,"icon":23},"How it works","\u002Fdocs\u002Fconcepts\u002Fhow-it-works","docs\u002F2.concepts\u002F1.how-it-works",{"title":48,"path":49,"stem":50,"icon":23},"Processing steps","\u002Fdocs\u002Fconcepts\u002Fprocessing","docs\u002F2.concepts\u002F2.processing",{"title":52,"path":53,"stem":54,"icon":23},"Media","\u002Fdocs\u002Fconcepts\u002Fmedia","docs\u002F2.concepts\u002F3.media",{"title":56,"path":57,"stem":58,"children":59,"icon":69},"Libraries","\u002Fdocs\u002Flibraries","docs\u002F3.libraries\u002F1.index",[60,61,65],{"title":56,"path":57,"stem":58,"icon":23},{"title":62,"path":63,"stem":64,"icon":23},"Storage","\u002Fdocs\u002Flibraries\u002Fs3","docs\u002F3.libraries\u002F3.s3",{"title":66,"path":67,"stem":68,"icon":23},"Uploading","\u002Fdocs\u002Flibraries\u002Fuploading","docs\u002F3.libraries\u002F4.uploading","layer-group",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":36},"Features","wand-magic-sparkles","\u002Fdocs\u002Ffeatures","docs\u002F4.features",[76,80,84,88,92,96,100,104,108,112,116,120,124],{"title":77,"path":78,"stem":79,"icon":23},"Browsing","\u002Fdocs\u002Ffeatures\u002Fbrowsing","docs\u002F4.features\u002F01.browsing",{"title":81,"path":82,"stem":83,"icon":23},"Search","\u002Fdocs\u002Ffeatures\u002Fsearch","docs\u002F4.features\u002F02.search",{"title":85,"path":86,"stem":87,"icon":23},"Tags","\u002Fdocs\u002Ffeatures\u002Ftags","docs\u002F4.features\u002F03.tags",{"title":89,"path":90,"stem":91,"icon":23},"Albums","\u002Fdocs\u002Ffeatures\u002Falbums","docs\u002F4.features\u002F04.albums",{"title":93,"path":94,"stem":95,"icon":23},"People and faces","\u002Fdocs\u002Ffeatures\u002Fpeople","docs\u002F4.features\u002F05.people",{"title":97,"path":98,"stem":99,"icon":23},"Groups","\u002Fdocs\u002Ffeatures\u002Fgroups","docs\u002F4.features\u002F06.groups",{"title":101,"path":102,"stem":103,"icon":23},"Duplicates and stacks","\u002Fdocs\u002Ffeatures\u002Fduplicates-and-stacks","docs\u002F4.features\u002F07.duplicates-and-stacks",{"title":105,"path":106,"stem":107,"icon":23},"NSFW","\u002Fdocs\u002Ffeatures\u002Fnsfw","docs\u002F4.features\u002F08.nsfw",{"title":109,"path":110,"stem":111,"icon":23},"Trash","\u002Fdocs\u002Ffeatures\u002Ftrash","docs\u002F4.features\u002F09.trash",{"title":113,"path":114,"stem":115,"icon":23},"Home and the dashboard","\u002Fdocs\u002Ffeatures\u002Fhome-and-dashboard","docs\u002F4.features\u002F10.home-and-dashboard",{"title":117,"path":118,"stem":119,"icon":23},"Live updates and offline","\u002Fdocs\u002Ffeatures\u002Flive-updates","docs\u002F4.features\u002F11.live-updates",{"title":121,"path":122,"stem":123,"icon":23},"Appearance and the app","\u002Fdocs\u002Ffeatures\u002Fappearance","docs\u002F4.features\u002F12.appearance",{"title":125,"path":126,"stem":127,"icon":23},"Places","\u002Fdocs\u002Ffeatures\u002Fplaces","docs\u002F4.features\u002F13.places",{"title":129,"icon":130,"path":131,"stem":132,"children":133,"page":36},"Administration","sliders","\u002Fdocs\u002Fadministration","docs\u002F5.administration",[134,138,142],{"title":135,"path":136,"stem":137,"icon":23},"Users and sign-in","\u002Fdocs\u002Fadministration\u002Fusers-and-sign-in","docs\u002F5.administration\u002F1.users-and-sign-in",{"title":139,"path":140,"stem":141,"icon":23},"API keys","\u002Fdocs\u002Fadministration\u002Fapi-keys","docs\u002F5.administration\u002F2.api-keys",{"title":143,"path":144,"stem":145,"icon":23},"Processing settings","\u002Fdocs\u002Fadministration\u002Fprocessing-settings","docs\u002F5.administration\u002F3.processing-settings",{"title":147,"icon":148,"path":149,"stem":150,"children":151,"page":36},"Self-hosting","server","\u002Fdocs\u002Fself-hosting","docs\u002F6.self-hosting",[152,156,160,164,167,171,175,179,183,187],{"title":153,"path":154,"stem":155,"icon":23},"Architecture","\u002Fdocs\u002Fself-hosting\u002Farchitecture","docs\u002F6.self-hosting\u002F1.architecture",{"title":157,"path":158,"stem":159,"icon":23},"Telemetry","\u002Fdocs\u002Fself-hosting\u002Ftelemetry","docs\u002F6.self-hosting\u002F10.telemetry",{"title":161,"path":162,"stem":163,"icon":23},"Sharing one GPU","\u002Fdocs\u002Fself-hosting\u002Fgpu","docs\u002F6.self-hosting\u002F2.gpu",{"title":62,"path":165,"stem":166,"icon":23},"\u002Fdocs\u002Fself-hosting\u002Fstorage","docs\u002F6.self-hosting\u002F3.storage",{"title":168,"path":169,"stem":170,"icon":23},"Backups","\u002Fdocs\u002Fself-hosting\u002Fbackups","docs\u002F6.self-hosting\u002F4.backups",{"title":172,"path":173,"stem":174,"icon":23},"Updating","\u002Fdocs\u002Fself-hosting\u002Fupdating","docs\u002F6.self-hosting\u002F5.updating",{"title":176,"path":177,"stem":178,"icon":23},"Scaling","\u002Fdocs\u002Fself-hosting\u002Fscaling","docs\u002F6.self-hosting\u002F6.scaling",{"title":180,"path":181,"stem":182,"icon":23},"HTTPS and a domain","\u002Fdocs\u002Fself-hosting\u002Freverse-proxy","docs\u002F6.self-hosting\u002F7.reverse-proxy",{"title":184,"path":185,"stem":186,"icon":23},"Troubleshooting","\u002Fdocs\u002Fself-hosting\u002Ftroubleshooting","docs\u002F6.self-hosting\u002F8.troubleshooting",{"title":188,"path":189,"stem":190,"icon":23},"The config file","\u002Fdocs\u002Fself-hosting\u002Fconfig-file","docs\u002F6.self-hosting\u002F9.config-file",{"title":192,"icon":193,"path":194,"stem":195,"children":196,"page":36},"Reference","book","\u002Fdocs\u002Freference","docs\u002F7.reference",[197,201,205,209,213],{"title":198,"path":199,"stem":200,"icon":23},"Environment variables","\u002Fdocs\u002Freference\u002Fenvironment","docs\u002F7.reference\u002F1.environment",{"title":202,"path":203,"stem":204,"icon":23},"Worker roles","\u002Fdocs\u002Freference\u002Fworker-roles","docs\u002F7.reference\u002F2.worker-roles",{"title":206,"path":207,"stem":208,"icon":23},"API","\u002Fdocs\u002Freference\u002Fapi","docs\u002F7.reference\u002F3.api",{"title":210,"path":211,"stem":212,"icon":23},"Keyboard shortcuts","\u002Fdocs\u002Freference\u002Fkeyboard-shortcuts","docs\u002F7.reference\u002F4.keyboard-shortcuts",{"title":214,"path":215,"stem":216,"icon":23},"Models","\u002Fdocs\u002Freference\u002Fmodels","docs\u002F7.reference\u002F5.models",{"title":218,"icon":219,"path":220,"stem":221,"children":222,"page":36},"Hubstruct Cloud","cloud","\u002Fdocs\u002Fcloud","docs\u002F8.cloud",[223,227,231],{"title":224,"path":225,"stem":226,"icon":23},"Getting started with the cloud","\u002Fdocs\u002Fcloud\u002Fgetting-started","docs\u002F8.cloud\u002F1.getting-started",{"title":228,"path":229,"stem":230,"icon":23},"Plans and billing","\u002Fdocs\u002Fcloud\u002Fplans-and-billing","docs\u002F8.cloud\u002F2.plans-and-billing",{"title":232,"path":233,"stem":234,"icon":23},"Moving between cloud and self-hosted","\u002Fdocs\u002Fcloud\u002Fmoving","docs\u002F8.cloud\u002F3.moving",{"id":236,"title":62,"body":237,"description":435,"extension":436,"eyebrow":56,"icon":23,"meta":437,"navigation":438,"path":63,"seo":439,"stem":64,"__hash__":440},"docs\u002Fdocs\u002F3.libraries\u002F3.s3.md",{"type":238,"value":239,"toc":425},"minimark",[240,249,254,273,276,286,297,301,345,348,355,359,386,389,392,395,399,402,414,418],[241,242,243,244,248],"p",{},"A library keeps its media in Hubstruct's own storage (S3-compatible). You ",[245,246,247],"a",{"href":67},"upload"," into it, and Hubstruct does the rest: it works out what each file is, makes its thumbnail and preview, and keeps your tags, favorites and trash itself.",[250,251,253],"h2",{"id":252},"where-the-files-go","Where the files go",[241,255,256,257,261,262,268,269,272],{},"Self-hosted, storage is the ",[258,259,260],"code",{},"storage"," service: ",[245,263,267],{"href":264,"rel":265},"https:\u002F\u002Fgaragehq.deuxfleurs.fr",[266],"nofollow","Garage",", a small S3-compatible object store, with its files in a folder on the host (",[258,270,271],{},".\u002Fdata\u002Fstorage"," by default). In the cloud, it's our storage.",[241,274,275],{},"Inside the bucket, each library has its own prefix:",[277,278,284],"pre",{"className":279,"code":281,"language":282,"meta":283},[280],"language-text","libraries\u002F\u003Clibrary id>\u002F\n  originals\u002F\u003Cmedia id>                     the file as you uploaded it\n  renditions\u002F\u003Cmedia id>\u002Fthumbnail.webp     for tiles and grids\n  renditions\u002F\u003Cmedia id>\u002Fpreview.webp       for the media page and the models\n  mosaics\u002F\u003Chash>.webp                      album, tag and person covers\n","text","",[258,285,281],{"__ignoreMap":283},[287,288,291],"callout",{"title":289,"type":290},"The storage folder isn't a folder of photos","warning",[241,292,293,294,296],{},"Garage keeps files in its own block format, split and deduplicated, so the folder on the host holds your media's bytes but not browsable photos. Back it up as a whole, with its metadata folder, and get files out through Hubstruct or any S3 client. See ",[245,295,62],{"href":165},".",[250,298,300],{"id":299},"what-it-can-read","What it can read",[302,303,304,317],"table",{},[305,306,307],"thead",{},[308,309,310,314],"tr",{},[311,312,313],"th",{},"Kind",[311,315,316],{},"Types",[318,319,320,329,337],"tbody",{},[308,321,322,326],{},[323,324,325],"td",{},"Images",[323,327,328],{},"JPEG, PNG, WebP, AVIF, TIFF",[308,330,331,334],{},[323,332,333],{},"GIFs",[323,335,336],{},"GIF",[308,338,339,342],{},[323,340,341],{},"Videos",[323,343,344],{},"MP4, WebM, MOV (QuickTime)",[241,346,347],{},"Anything else is refused at upload with a message saying why.",[241,349,350,354],{},[351,352,353],"strong",{},"Not yet:"," HEIC (iPhone photos) and camera RAW files. The image library Hubstruct uses doesn't decode them in its standard builds, so they'd sit there unable to be processed. Convert them to JPEG first for now; support is planned.",[250,356,358],{"id":357},"what-happens-to-an-upload","What happens to an upload",[360,361,362,369,375,381],"ol",{},[363,364,365,368],"li",{},[351,366,367],{},"The upload"," streams the file straight into storage, never holding it all in memory, then creates the media. It appears in the library at once, as a placeholder.",[363,370,371,374],{},[351,372,373],{},"metadata"," reads the file's details: its dimensions, its length for a video, its date taken from EXIF, and its ThumbHash.",[363,376,377,380],{},[351,378,379],{},"renditions"," makes the thumbnail and preview. For a video, they're made from a frame a moment in.",[363,382,383,384,296],{},"Every other step follows, as for any media. See ",[245,385,48],{"href":49},[241,387,388],{},"Every other step waits for the first two, since they work from the preview.",[250,390,341],{"id":391},"videos",[241,393,394],{},"Videos are served as uploaded, with range requests so you can seek straight to any point. Hubstruct doesn't transcode, so a video your browser can't play (for example, HEVC in a browser without HEVC support) won't play in Hubstruct either, though it's still processed from its frames. MP4 with H.264 plays everywhere.",[250,396,398],{"id":397},"tags-favorites-and-the-trash","Tags, favorites and the trash",[241,400,401],{},"A library keeps everything in Hubstruct:",[403,404,405,408],"ul",{},[363,406,407],{},"Tags, favorites and titles live in the database.",[363,409,410,413],{},[351,411,412],{},"Emptying the trash"," deletes the original and its renditions from storage.",[250,415,417],{"id":416},"deleting-a-library","Deleting a library",[241,419,420,421,424],{},"Deleting a library deletes ",[351,422,423],{},"everything under its prefix in storage",", meaning the originals, renditions and mosaics, along with its records. It asks first, naming how many media it holds. There's no undo: back up first if you might want them.",{"title":283,"searchDepth":426,"depth":426,"links":427},3,[428,430,431,432,433,434],{"id":252,"depth":429,"text":253},2,{"id":299,"depth":429,"text":300},{"id":357,"depth":429,"text":358},{"id":391,"depth":429,"text":341},{"id":397,"depth":429,"text":398},{"id":416,"depth":429,"text":417},"Libraries whose media Hubstruct keeps itself, in S3-compatible storage. How files are stored, what's made from them, and what it can read.","md",{},true,{"title":62,"description":435},"ZVw0dqoHfdhnWqpyWpL7EqLk46WRznpFuHVeHOI4DmQ",[442,444],{"title":56,"path":57,"stem":58,"description":443,"children":-1},"Where your media lives. What a library holds, and how to add, switch between and remove them.",{"title":66,"path":67,"stem":68,"description":445,"children":-1},"Getting photos and videos into a library, from the browser or with the API.",1795744073094]