image::get_file_info (public)
image::get_file_info [ -filename filename ]
Defined in packages/acs-content-repository/tcl/image-procs.tcl
Get info about an image file, dimensions, mime_type The name of this proc tries to make clear that we aren't getting info for an image type object, but examinging an image file in the filesystem
- Switches:
- -filename (optional)
- Full path to file in the filesystem
- Returns:
- List of width, height, and mime_type
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # First try to get it via built-in support. If this fails, use # image magic. set size [image::ns_size -filename $filename] if {[lindex $size 0] ne ""} { set mime_type [image::mime_type -filename $filename] return [concat $size $mime_type] } return [image::imagemagick_identify -filename $filename]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-content-repository/tcl/image-procs.xql