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 ]

Defined in packages/acs-content-repository/tcl/image-procs.tcl

Create a new image object from a temporary file

Switches:
-name (optional)
Name of image item, must be unique per parent_id
-parent_id (optional)
Parent object for this image. Context_id will be set to parent_id
-item_id (optional)
Item id of the content item for this image. The item_id will be generated from the acs_object_id sequence if not specified.
-locale (optional)
-creation_date (optional)
-creation_user (optional)
-context_id (optional)
-package_id (optional)
-creation_ip (optional)
-item_subtype (optional, defaults to "content_item")
-content_type (optional, defaults to "image")
-title (optional)
-description (optional)
-mime_type (optional)
-relation_tag (optional)
-is_live (optional)
-storage_type (optional, defaults to "file")
-attributes (optional)
-tmp_filename (optional)
Filename in the filesystem, readable by AOLserver user to create image from
-width (optional)
-height (optional)
Returns:
Item_id
Error:
Author:
Dave Bauer <dave@thedesignexperience.org>
Created:
2006-07-31

Testcases:
image_new
[ show source ]
Show another procedure: