🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Astro Themes••By Komal Nakrani

Best Astro Photography Templates for Photographers (2026)

The best Astro photography template options in 2026: what photographers need, free routes, paid gallery themes, and an optimized image gallery pattern to copy.

#Astro#Photography Templates#Astro Themes#Image Optimization

The best Astro photography template shows large images without slowing the page down: galleries built with Astro’s <Image> or <Picture> components so every photo is resized, converted to modern formats and lazy-loaded, plus project pages, an about page and a booking or enquiry path. Free Astro themes rarely focus on photography, so most photographers either adapt a portfolio starter or start from a paid photography theme that already has gallery and series layouts.

We sell Astro themes, including photography ones, so we have a stake here. This guide covers what a photography site needs, the free options, a gallery pattern that keeps load times down, and our strongest picks.

Key Takeaways

  • Photo sites are image-heavy, so image optimization matters more than any other feature.
  • Let astro:assets generate responsive sizes and WebP or AVIF versions at build time.
  • Organize work into series or client projects, each with its own page and URL.
  • Free routes are Astro’s official portfolio starter and general themes such as AstroWind; dedicated free photography themes are scarce.
  • Our catalog has dozens of photography themes, mostly in Portfolio & Agency, plus wedding photography designs in Weddings & Events.

What a photography website needs

A photographer’s site has two audiences: people judging the work, and people ready to book. Serve both.

  1. A strong opening image or reel. The first screen should be your best work, not a paragraph.
  2. Galleries or series. Grouped by client, project or genre (weddings, portraits, product, architecture).
  3. Project pages. One URL per series, with a short story, location and credits.
  4. Services and pricing. Packages, what is included, and how to book.
  5. About and contact. A photo of you, your style, and an enquiry form or booking link.

Photography is also where weak image handling shows most. A gallery of twenty full-resolution JPEGs can easily weigh tens of megabytes. Our photography portfolio build guide covers the full project, and this article focuses on choosing a template.

How to judge an Astro photography template

Check Why it matters
Uses <Image> or <Picture> from astro:assets Resized, compressed, lazy-loaded photos
Width and height set on every image No layout shift as photos load
Gallery data in a collection or folder Adding a series means adding files, not editing markup
Lightbox is optional and light Viewing full size should not need a heavy library
Mobile layout tested with portrait photos Most visitors arrive on a phone

If a theme uses plain <img> tags pointing at files in public/, Astro does not process those images. You can still use the theme, but plan to move photos into src/ and switch to <Image>.

Free Astro photography options

Astro’s official portfolio starter

The official portfolio starter is a clean base for a photographer who wants their own design:

# Terminal
npm create astro@latest -- --template portfolio

Add a gallery collection and the image pattern below, and you have a fast photography site.

AstroWind

AstroWind is a free Tailwind CSS theme with landing sections and a blog. Its layouts are not photography-specific, but it gives you services, pricing and contact sections to pair with your own gallery pages.

The official directory

The Astro themes directory lists free and paid portfolio themes. Search for photography or gallery, and check that a theme uses astro:assets before choosing it.

Put each series in its own folder under src/assets/, then load the images with import.meta.glob. Astro processes every match at build time:

---
// src/components/Gallery.astro
import type { ImageMetadata } from 'astro';
import { Image } from 'astro:assets';

interface Props {
  series: string;
}

const { series } = Astro.props;
const files = import.meta.glob<{ default: ImageMetadata }>(
  '/src/assets/series/**/*.{jpg,jpeg,png,webp}',
  { eager: true }
);
const photos = Object.entries(files)
  .filter(([path]) => path.includes(`/series/${series}/`))
  .map(([path, mod]) => ({ path, src: mod.default }));
---
<ul class="gallery">
  {photos.map(({ path, src }, i) => (
    <li>
      <a href={src.src}>
        <Image
          src={src}
          alt={`${series} photo ${i + 1}`}
          widths={[400, 800, 1200]}
          sizes="(min-width: 960px) 33vw, (min-width: 600px) 50vw, 100vw"
          loading={i < 3 ? 'eager' : 'lazy'}
        />
      </a>
    </li>
  ))}
</ul>

The widths and sizes props make Astro generate a srcset, so phones download small files and large screens get sharp ones. The first three images load eagerly so the top of the page appears quickly; the rest load as the visitor scrolls. Write real alt text for your best images instead of the generated fallback; it helps accessibility and image search.

If you want Astro to apply responsive behavior to every image by default, set it once in the config:

// astro.config.mjs
import { defineConfig } from 'astro/config';

export default defineConfig({
  image: {
    layout: 'constrained',
    responsiveStyles: true,
  },
});

The official images guide explains each layout option. For a full-screen viewer, our image lightbox article adds one with the native <dialog> element, and the responsive images tip covers sizes in more depth.

Most photography themes in our catalog sit in Portfolio & Agency, with wedding photography designs in Weddings & Events. Each is a complete Astro 7 project with TypeScript and a live preview, and builds to static files. A few picks:

Aperture: studios with several specialties

Aperture ($39) is built for a photography studio or freelancer, with business-area pages for architecture, drone, product and wildlife photography. Choose it if you sell several kinds of shoot and want a page for each.

Carrete and Crop: full photography business sites

Carrete ($39) includes Gallery, Portfolio, Services, FAQ, Blog and About pages for photographers and visual artists. Crop ($39) offers Gallery, Services, Hire, Blog and Contact pages, with responsive layouts for desktop, tablet and phone.

Cooper: slideshows and pricing

Cooper ($39) presents work in several ways, including full-screen slideshows, and adds a Pricing page and project pages. It suits photographers whose portfolio is the main sales tool.

Amanda Muse: wedding photographers and videographers

Amanda Muse ($39) targets wedding photographers and videographers, with several home and about layouts and project pages.

Bjelle and Aspect Ratio: minimal and lower cost

Bjelle ($29) is a minimal, dark photography theme. Aspect Ratio ($29) is a minimal photography portfolio with About Me, Portfolio, Work Together and Contact pages.

Free or paid photography template

Both routes work; the right one depends on your time and skills.

Choose a free starter if you or someone you work with is comfortable editing Astro components and CSS. You get full control over the design and pay nothing, but you will build the gallery, series pages, services and contact sections yourself. Expect a few days of work for a polished result.

Choose a paid photography theme if you want a finished design with gallery layouts, project pages and service pages already in place. You still swap in your own photos and text, and you can change anything in the source, but the structure and visual design are done.

Whichever you choose, the parts that matter most are the same: your best twenty images, fast loading on a phone, and a clear way to book. A simple template with great photos and a visible enquiry button will outperform an elaborate one with slow galleries.

Before you launch a photography site

  1. Replace every demo photo; check licenses on any stock images left in the theme.
  2. Export originals at a sensible size (around 2,400 px on the long edge) before adding them to src/assets/.
  3. Write alt text for key images and descriptive file names for each series.
  4. Check the gallery on a slow mobile connection with the browser’s network throttling.
  5. Deploy with the Cloudflare Pages guide or your host’s equivalent and test the live URL on a phone.

FAQ

Is Astro good for photography websites?

Yes. Astro’s image pipeline resizes and converts photos at build time, generates srcset attributes and lazy-loads images, which is what a gallery needs. Pages ship little JavaScript, so large galleries stay responsive.

How do I optimize photos in an Astro photography site?

Store photos in src/ rather than public/, and render them with <Image> or <Picture> from astro:assets. Set widths and sizes so browsers pick the right file, and load only the first few images eagerly.

Can I sell prints from an Astro photography template?

Yes, with a third-party checkout. Add buy buttons from a service such as Stripe Payment Links or Snipcart to print pages. The site stays static while the checkout runs on the provider’s side.

Where should I store photos for an Astro site?

For a few hundred photos, keep them in src/assets/ so Astro optimizes them. For very large libraries, an image CDN such as Cloudinary can serve and transform images, and Astro’s remote image support can work with it.

Do photography templates include a lightbox?

Some do. If yours does not, you can add a light one with the native <dialog> element and a few lines of script, without a large gallery library.