- 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::directory (private)
- attachments::image::expire (private)
- attachments::image::variant (public)
- attachments::image::widths (public)
Detailed information
attachments::image::directory (private)
attachments::image::directory
Return the private cache directory. Generated files are never public resources.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
attachments::image::expire (private)
attachments::image::expire
Remove disposable variants after seven days; originals remain in the CR.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
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.