attachments::image::variant (public)
attachments::image::variant path width [ identity ]
Defined in packages/attachments/tcl/image-procs.tcl
Return a cached, smaller bitmap, or the original when conversion is unavailable. Callers must authorize access to the original BEFORE calling this helper. An empty width requests the original. Identity should include the CR revision ID for committed images; drafts are distinguished by their private path.
- Parameters:
- path (required)
- width (required)
- identity (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.