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):
%3 image::get_file_info_array image::get_file_info_array (public) image::get_file_info image::get_file_info image::get_file_info_array->image::get_file_info image::imagemagick_identify image::imagemagick_identify (public) image::get_file_info->image::imagemagick_identify image::mime_type image::mime_type (public) image::get_file_info->image::mime_type image::ns_size image::ns_size (public) image::get_file_info->image::ns_size

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

[ hide source ] | [ make this the default ]
Show another procedure: