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
(defaults to "content_item") (optional)
-content_type
(defaults to "image") (optional)
-title
(optional)
-description
(optional)
-mime_type
(optional)
-relation_tag
(optional)
-is_live
(optional)
-storage_type
(defaults to "file") (optional)
-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

Partial Call Graph (max 5 caller/called nodes):
%3 test_image_new image_new (test acs-content-repository) image::new image::new test_image_new->image::new content::item::new content::item::new (public) image::new->content::item::new image::get_file_dimensions image::get_file_dimensions (public) image::new->image::get_file_dimensions image::resize image::resize (public) image::resize->image::new packages/acs-templating/www/scripts/xinha/attach-file.tcl packages/acs-templating/ www/scripts/xinha/attach-file.tcl packages/acs-templating/www/scripts/xinha/attach-file.tcl->image::new packages/acs-templating/www/scripts/xinha/attach-image.tcl packages/acs-templating/ www/scripts/xinha/attach-image.tcl packages/acs-templating/www/scripts/xinha/attach-image.tcl->image::new packages/xowiki/www/xinha/attach-file.tcl packages/xowiki/ www/xinha/attach-file.tcl packages/xowiki/www/xinha/attach-file.tcl->image::new packages/xowiki/www/xinha/insert-file.tcl packages/xowiki/ www/xinha/insert-file.tcl packages/xowiki/www/xinha/insert-file.tcl->image::new

Testcases:
image_new
[ show source ]
Show another procedure: