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):
packages/forums/www/markdown-image.tcl packages/forums/ www/markdown-image.tcl attachments::image::variant attachments::image::variant packages/forums/www/markdown-image.tcl->attachments::image::variant packages/news/www/markdown-image.tcl packages/news/ www/markdown-image.tcl packages/news/www/markdown-image.tcl->attachments::image::variant ad_log ad_log (public) attachments::image::variant->ad_log attachments::image::directory attachments::image::directory (private) attachments::image::variant->attachments::image::directory attachments::image::widths attachments::image::widths (public) attachments::image::variant->attachments::image::widths image::convert_binary image::convert_binary (public) attachments::image::variant->image::convert_binary

Testcases:
No testcase defined.
[ show source ]
Show another procedure: