| Publicity: |
|---|
| [Public Only | All] |
Procedures to handle image subtype Image magick handling procedures inspired and borrowed from photo-album and imagemagick packages
- Location:
- packages/acs-content-repository/tcl/image-procs.tcl
- Created:
- 2006-07-31
- Author:
- Dave Bauer <dave@thedesignexperience.org>
- CVS Identification:
$Id: image-procs.tcl,v 1.8 2008/12/29 22:01:28 gustafn Exp $
image::convert_binary (public)image::convert_binary Find imagemagick convert binary |
image::filename_mime_type (public)image::filename_mime_type [ -filename filename ] \
[ -mime_type mime_type ]
Use ns_guesstype if we don't know the mime_type |
image::get_file_dimensions (public)image::get_file_dimensions [ -filename filename ] \
[ -mime_type mime_type ]
Get the width and height of an image from a file in the filesystem. This uses for an imagemagick binary, if that is not available, it tries ns_gifsize, ns_jpgsize AOLserver commands. We use imagemagick first since it supports many more image formats. |
image::get_file_info (public)image::get_file_info [ -filename filename ] 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 |
image::get_file_info_array (public)image::get_file_info_array [ -filename filename ] \
[ -array_name array_name ]
Get info about an image file, dimensions, mime_type into an array in the caller's namespace. |
image::get_resized_item_id (public)image::get_resized_item_id [ -item_id item_id ] \
[ -size_name size_name ]
Get the item id of a related resized image, usually the thumbnail size |
image::get_size_item_id (public)image::get_size_item_id [ -item_id item_id ] [ -size_name size_name ] Get the item_id of a resized version of an image |
image::identify_binary (public)image::identify_binary Find imagemagick identify binary |
image::imagemagick_file_dimensions (public)image::imagemagick_file_dimensions [ -filename filename ] Get the dimensions of an image from imagemagick |
image::imagmagick_identify (public)image::imagmagick_identify [ -filename filename ] Get width height and mime type from imagemagick |
image::new (public)image::new [ -name name ] [ -parent_id parent_id ] \
[ -item_id item_id ] [ -locale locale ] \
[ -creation_date creation_date ] [ -creation_user creation_user ] \
[ -context_id context_id ] [ -package_id package_id ] \
[ -creation_ip creation_ip ] [ -item_subtype item_subtype ] \
[ -content_type content_type ] [ -title title ] \
[ -description description ] [ -mime_type mime_type ] \
[ -relation_tag relation_tag ] [ -is_live is_live ] \
[ -storage_type storage_type ] [ -attributes attributes ] \
[ -tmp_filename tmp_filename ] [ -width width ] [ -height height ]
Create a new image object from a temporary file |
image::ns_size (public)image::ns_size [ -filename filename ] [ -mime_type mime_type ] Use ns_gifsize/ns_jpegsize to try to get the size of an image |
image::resize (public)image::resize [ -item_id item_id ] [ -revision_id revision_id ] \
[ -size_name size_name ]
Create a thumbnail of an image in the content repository |