Image actions
Resize, crop and sharpen images through their address.
Read the guideModule · Veva.Modules.Assets
One media library for every file on the site. Folders give files stable /library/ addresses, and each image is resized, cropped and sharpened on the server for the place it appears.
What it does
A folder's alias puts its files at /library/folder/file. The permanent link, /library/?itemid=, never changes.
Add width, fit, cover, crop or sharpen actions to an image's address and get that version back.
A folder can accept one file type only, and run an image procedure on every image uploaded to it.
Save a focus point on an image, so crops keep what matters.
EXIF and IPTC are read into the library. Processed images leave GPS and other metadata out.
The Unsplash and Pexels modules add a tab to the Add Content dialog, so editors pick photos in place.
How it works
01
In the admin, from a url, from Unsplash or Pexels, or over MCP.
02
The folder's alias, file type and image procedure apply.
Image procedure03
Add actions to the address, such as &action=cover:800x800.
/library/?itemid=04
The server makes that version on its first request and keeps it.
05
In an Image component, or as {image.FriendlyUrl} in a document.
For developers
IAssetUrlService builds the address of an asset at the size you need, from a property or from a document field in the data binding.
Change how images are made or where files come from. In Veva.Modules.Assets.Domain:
IImageProcedureStepHandler: one step of an image procedureIActionParser: turns URL actions into stepsIMetaDataService: reads metadata from filesIAssetSource: a source of files in the Add Content dialog@inject IAssetUrlService AssetUrls <img src="@ImageUrl()" alt="@Image?.Description" loading="lazy" /> @code { [EditorBrowsable, Parameter, DisplayName("Image")] public AssetProperty Image { get; set; } // 800px wide, lightly sharpened private string ImageUrl() => Image?.AssetId is Guid id && id != Guid.Empty ? AssetUrls.GetAssetUrl( id, 800, null, ResizeMode.Fit, SharpenStrength.Light) : null; }
Keep reading
Resize, crop and sharpen images through their address.
Read the guideAn image property editors pick from the library.
Read the guideMore of Veva
Each one is a package. Reference it, restart, and its components are in the editor.
Compose pages from components, then preview and publish
OpenStructured content you list, filter and serve anywhere
OpenCrawl, index and search the whole site
OpenBuildVeva(), modules, components, themes and hooks
OpenData sources, sign-in, mail, analytics and media
Open