image::ns_size (public)
image::ns_size [ -filename filename ] [ -mime_type mime_type ]
Defined in packages/acs-content-repository/tcl/image-procs.tcl
Use ns_gifsize/ns_jpegsize to try to get the size of an image
- Switches:
- -filename (optional)
- Full path to file in the filesystem
- -mime_type (optional)
- Returns:
- List containing width and height
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set w "" set h "" if {[file exists $filename] && [ns_imgtype $filename] ne "unknown"} { lassign [ns_imgsize $filename] w h } return [list $w $h]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-content-repository/tcl/image-procs.xql