xowiki::markdown_image::mime_type (private)
xowiki::markdown_image::mime_type path
Defined in packages/xowiki/tcl/markdown-image-procs.tcl
Identify a supported bitmap by its contents.
- Parameters:
- path (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if {![file isfile $path] || [catch {ns_imgtype $path} type] || $type ni {png jpeg gif} || [catch {ns_imgsize $path} size] || [llength $size] != 2 || [lindex $size 0] <= 0 || [lindex $size 1] <= 0} { return "" } return image/$typeXQL Not present: Generic, PostgreSQL, Oracle