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):
xowiki::markdown_image::drafts xowiki::markdown_image::drafts (private) xowiki::markdown_image::mime_type xowiki::markdown_image::mime_type xowiki::markdown_image::drafts->xowiki::markdown_image::mime_type

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/$type
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: