image::get_file_dimensions (public)
image::get_file_dimensions [ -filename filename ] \ [ -mime_type mime_type ]
Defined in packages/acs-content-repository/tcl/image-procs.tcl
Get the width and height of an image from a file in the filesystem. This tries first to use built-in ns_*-support, and if not available, if talls back to imagemagick. We use imagemagick first since it supports many more image formats.
- Switches:
- -filename (optional)
- full path to file in the filesystem
- -mime_type (optional)
- Returns:
- Returns a list of width and height
- Author:
- Dave Bauer <dave@solutiongrove.com>
- Created:
- 2006-08-28
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set size [image::ns_size -filename $filename -mime_type $mime_type] if {[lindex $size 0] eq ""} { catch {set size [image::imagemagick_file_dimensions -filename $filename]} } return $sizeXQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-content-repository/tcl/image-procs.xql