- Publicity: Public Only All
image-procs.tcl
Shared, disposable resized-image cache for attachment integrations.
- Location:
- packages/attachments/tcl/image-procs.tcl
Procedures in this file
- attachments::image::variant (public)
- attachments::image::widths (public)
Detailed information
attachments::image::variant (public)
attachments::image::variant path width [ identity ]
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.
attachments::image::widths (public)
attachments::image::widths
Supported responsive image widths in pixels. Keep in sync with the Markdown editor.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.