Skip to content

Why Media?

ProcessWire’s built-in FieldtypeImage and FieldtypeFile work well when an image belongs strictly to a single page. As a site grows across multiple templates, languages, structured Entries collections, email campaigns, and external marketing teams, page-bound files quickly create duplication and governance bottlenecks.

Media gives your team a single, centralized asset library without forcing you to turn every file into a ProcessWire page.

Comparing Page-Scoped Files vs Centralized Media

Section titled “Comparing Page-Scoped Files vs Centralized Media”
Capability Classic Pageimages / Pagefiles trk/processwire-media
Reuse Across Pages & Entries Requires re-uploading or cross-page reference workarounds Upload once, reference anywhere via FieldtypeMedia, Entries, or Tiptap
In-Place File Replacement Must update every copy manually Replace once (?v=<rev>); every page, Entry, and cache updates automatically with optional revision rollback
Usage Tracking & Safe Delete No cross-site usage index entries_tbl_media_usage tracks Pages, Entries, and rich text; delete_policy: block prevents broken links
Remote Storage & CDN Local filesystem (site/assets/files/{pageId}/) Pluggable Flysystem v3 disks (public, private, AWS S3, Cloudflare R2, SFTP, FTP/FTPS, s3_sigv4) + zero-CPU CDN templates
Confidential Module Files Mixed with public page directories Fail-closed module-scoped Private Vaults (uploadPrivate()) with HMAC signed URLs and single-use tokens
Cropping & Responsive Markup Basic resize/crop on disk Focus-point Crop Studio, manual-lock protection, on-demand delayed transforms, AVIF/WebP <picture>, art direction, LQIP
Governance & Sharing None built in Approval statuses, embargo dates, IPTC metadata, SHA-256 duplicate merge, and password-protected public share galleries
ProcessWire pages Table Impact N/A Zero pages table pollution (backed by hidden Entries blueprints and Managed SQL Tables)

Even though Media runs on its own Intervention Image v4.4 engine (Vips -> Imagick -> GD), MediaAssetItem intentionally mirrors ProcessWire’s Pageimage and Pagefile properties ($img->url, $img->width, $img->height, $img->size(800, 600), $img->webp, $img->avif, $img->alt($lang)) so existing ProcessWire developers feel productive immediately.

Next steps