AssetOptions
ceramic.AssetOptions (Typedef)
Asset loading options.
A dynamic type that allows passing asset-specific configuration options. The actual fields depend on the asset type and backend implementation.
Common options include:
premultiplyAlpha
(Bool) - For images, whether to premultiply alpha channelstreaming
(Bool) - For sounds, whether to stream from diskdensity
(Float) - Override density detection- Custom backend-specific options
assets.addImage('hero', null, {
premultiplyAlpha: true,
generateMipmaps: false
});