Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Photo Sphere Gallery: a Globe of Photos You Drag to Spin, Scatter and Open

Build a portfolio hero where dozens of photos are tiled over a globe you can drag to spin. It coasts after a flick, leans toward the pointer and keeps a slow turn; one button bursts the tiles into a loose wall and back, and a click opens a photo full size. SandBase generates the photos as 4x4 contact sheets that the Skill cuts apart, or you bring your own folder. CSS 3D only, no WebGL. The hero is followed by a full landing page: chapter titles, an intro, a product console drawn in HTML, feature cards, specs, stats, a quote, a call to action and a footer, with a moving glow and a floating section pill.

Exemplos · 2

Travel photography portfolio with photos tiled over a globe you can spin
Abrir em nova aba

Executa em um frame isolado, sem acesso a esta página.

Executar online

Execute em um sandbox do SandBase e veja seus resultados no Lab.

Abrir no Lab ↗

O que você recebe

Bring a theme for the photos (or your own folder of photos), your brand, copy, links and language. The Skill returns a full landing page (index.html), a section to paste into an existing site, the runtime script and stylesheet, the cut-apart photos and the bundled open fonts.

Como funciona

  1. 01

    Plan the photos and page

    Photo Sphere Gallery asks what the photos show, or takes the user's own folder, plus brand, copy, links, palette and language, then plans the landing page after the hero. site.json carries a caption per photo in each language and a sphere block: tiles from 12 to 80, radius, spin, friction and tilt. node scripts/sample.mjs salt-light --site site.json --out preview builds a free preview.

  2. 02

    Generate sheets or bring photos

    Once the user accepts the estimate, node scripts/generate.mjs --theme "<16 subjects>" --sheets 2 --site site.json --out run, then the same command with --confirm-real, makes 4 by 4 contact sheets through SandBase and cuts them along white gutters. Own photos use build-web.mjs --photos <dir>. It needs Node 18+, ffmpeg and ffprobe; photos come out as 720 px wide JPEGs.

  3. 03

    Preview and hand over

    node scripts/serve.mjs run/site serves the result: drag to spin, press Scatter and click a photo. The folder holds index.html, section.html, photo-sphere.js, photo-sphere.css, landing.js, fonts and photos. Release 0.2.0 placed 32 photos on 64 tiles with 10 page sections and passed 15 checks, including flick-coasts, scatter and back, click-opens, Esc to close and a 390 px phone drag.

FAQ

What does Photo Sphere Gallery build?

Photo Sphere Gallery builds a portfolio hero where photos are tiled over a globe you drag to spin. It coasts, leans toward the pointer and keeps a slow turn, Scatter bursts the tiles into a loose wall, and a click opens a photo full size with its caption. A landing page with console, features, stats, quote and call to action follows.

Does Photo Sphere Gallery charge for photos?

Only when it generates them. Photo Sphere Gallery calls gpt-image-2 through the logged-in sandbase CLI or SANDBASE_API_KEY to make contact sheets, and that usage is billed to your SandBase account. It shows an estimate per sheet first, needs --confirm-real to spend and accepts --budget-usd as a cap; rates are at https://www.sandbase.ai/pricing. Samples and own photos are free.

Can I use my own photos in Photo Sphere Gallery?

Yes. Photo Sphere Gallery builds from a folder with build-web.mjs --photos <dir>, or from your own contact sheets with --grid, which must have white gutters. Tiles are 3:2, so other shapes are cropped, and sets over 80 photos cannot all sit on the globe at once.

Does Photo Sphere Gallery need WebGL?

No. Photo Sphere Gallery uses CSS 3D only. Each photo is a tile facing outward from a Fibonacci-spaced point on a sphere, and photos repeat to fill the tile count. PhotoSphere.mount(el, options) returns inspect, setMode, open, close and destroy.

What samples come with Photo Sphere Gallery?

Photo Sphere Gallery ships salt-light, 32 coastal photos on a light travel photographer page, and small-batch, 32 food and ceramics photos on a dark food studio page. Both were made from two gpt-image-2 contact sheets and come in English and Chinese. results/runs.json lists every paid call made for the Skill.

What can't Photo Sphere Gallery do?

Photo Sphere Gallery is not for video, 3D models or photos of real people. Its cutter needs gutter rows and columns that are at least 96 percent near-white, so sheets without clean gutters will not split. Never put a key in a command, file or prompt.