Common Lisp Package: BKNR.IMAGES

README:

FUNCTION

Public

IMAGE-KEYWORD-CHOOSE-DIALOG (&KEY (SIZE 2) (NAME keyword) (CREATE NIL))

Outputs one or more keyword choose dialogs, which can be used to choose from the list of available keywords or to add new keywords. Arguments: size (optional, default 4) the number of choose dialogs name (optional, default "keyword") the name of the input fields which are output create (optional, default nil) if a text-field for a new keyword should be output Example: <bknr:keyword-choose-dialog size="1" name="foo" create="t" /> outputs <div class="keyword-choose"><select name="foo" size=1><option value=""></option> <option value="LOGO">LOGO</option> <option value="PEECOL-TOP">PEECOL-TOP</option> </select> <input type="text" length="20" name="foo"/></div> <bknr:keyword-choose-dialog size="4" name="test" /> outputs <div class="keyword-choose">1. <select name="test" size=1><option value=""></option> <option value="LOGO">LOGO</option> <option value="PEECOL-TOP">PEECOL-TOP</option> </select> </div> <div class="keyword-choose">2. <select name="test" size=1><option value=""></option> <option value="LOGO">LOGO</option> <option value="PEECOL-TOP">PEECOL-TOP</option> </select> </div> <div class="keyword-choose">3. <select name="test" size=1><option value=""></option> <option value="LOGO">LOGO</option> <option value="PEECOL-TOP">PEECOL-TOP</option> </select> </div> <div class="keyword-choose">4. <select name="test" size=1><option value=""></option> <option value="LOGO">LOGO</option> <option value="PEECOL-TOP">PEECOL-TOP</option> </select> </div>

Undocumented

EMIT-IMAGE-TO-BROWSER (IMAGE IMAGE-FORMAT &KEY (QUALITY -1) (DATE 0) CACHE-STICKY MAX-AGE)

GET-KEYWORD-STORE-IMAGES (KEY)

GET-KEYWORDS-INTERSECTION-STORE-IMAGES (KEYWORDS)

IMAGE-COLLECTION (IMAGES &KEY TITLE (URL /browse-image/))

IMAGE-TYPE-KEYWORD (IMAGE)

IMAGEPROC (IMAGE OPERATIONS)

MAKE-STORE-IMAGE (&KEY (IMAGE *DEFAULT-IMAGE*) NAME (TYPE PNG) DIRECTORY KEYWORDS (IF-EXISTS ERROR) (CLASS-NAME 'STORE-IMAGE) INITARGS)

PARSE-COLOR (COLOR-STRING &KEY (IMAGE *DEFAULT-IMAGE*))

STORE-IMAGE-WITH-NAME (KEY)

USER-IMAGE (&KEY USER)

USER-IMAGES (USER)

Private

IMAGE-BROWSER (&KEY ID)

Generates an image browser for an image Arguments: id (required) the id of the image to browse Outputs: An image browser

IMPORT-DIRECTORY (PATHNAME &KEY USER KEYWORDS (SPOOL *USER-SPOOL-DIRECTORY-ROOT*) KEYWORDS-FROM-DIR (CLASS-NAME 'STORE-IMAGE) (DELETE-FILES T))

Import all files from directory by giving them relative names

KEYWORD-IMAGES (&KEY KEYWORD)

List the images marked with the keyword arguments as an image collection Arguments: keyword (required) the keyword Output: a collection of the images marked with the given keyword. Example: <bknr:keyword keyword="robots"/> would show the images marked with the keyword robot

KEYWORDS-INTERSECTION (&KEY KEYWORDS)

Outputs an image collection containing the intersection of the images marked with the given keywords Usage is the same as keywords-union, except that result is a collection of the images marked with all the keywords given

KEYWORDS-UNION (&KEY KEYWORDS)

Outputs an image collection containing the union of the images marked with the given keywords Arguments: keywords (required) contains a comma-separated list of keywords Output: A table with 5 images per row containing the thumbnails of images marked with one or more of the keywords given in the argument keywords. The table is generated with the image-collection function Example: <bknr:keywords-union keywords="robots,cards" /> outputs <div class="images"><table><tr><td width="110"><a href="/browse-image/3" alt="peecol8"> <img src="/image/3/thumbnail" alt="peecol8"/></a> </td> <td width="110"><a href="/browse-image/4" alt="peecol7"> <img src="/image/4/thumbnail" alt="peecol7"/></a> </td> <td width="110"><a href="/browse-image/37" alt="EBY_dynasitelogo"> <img src="/image/37/thumbnail" alt="EBY_dynasitelogo"/></a> </td> </tr> </table> </div>

QUOTE-META-CHARS (STRING &KEY (START 0) (END (LENGTH STRING)))

Quote, i.e. prefix with #\\, all non-word characters in STRING.

SEARCH-IMAGE-COLLECTION (&KEY TITLE)

Generates a search field to search the image collection Arguments: title (required) the title of the search field Outputs: A search field to do name search and keyword search on the image collection

Undocumented

ALL-IMAGE-KEYWORDS

ALL-STORE-IMAGE-DIRECTORIES

ALL-STORE-IMAGES

APPLY-IMAGEPROC-OPERATION (OPERATION-NAME ARGS IMAGE)

CELL (INPUT-IMAGE &OPTIONAL (BGCOLOR ffffff) (CELL-WIDTH 50) (CELL-HEIGHT 50) (BORDER-WIDTH 0))

COLOR (INPUT-IMAGE &REST COLOR-MAPPINGS)

DOUBLE (INPUT-IMAGE &OPTIONAL (TIMES 2))

EDIT-IMAGE-COLLECTION (&KEY TITLE (IMAGES (SESSION-VALUE CURRENT-QUERY-RESULT)))

FIND-IMAGE (IMAGE-ID)

GET-KEYWORDS-UNION-STORE-IMAGES (KEYWORDS)

IMAGE-DIRECTORY-RECURSIVE (PATHNAME)

IMAGE-PAGE (RESULTS &KEY)

IMAGE-URL (IMAGE &KEY PROCESS (PREFIX /image))

LAYOUTER (IMAGES)

MAKE-KEYWORD-RESULTS (IMAGES)

ONE-IMAGE-OF (&KEY KEYWORD ALT (WIDTH 648) (HEIGHT 96) (BACKGROUND 000000))

RANDOM-IMAGE (&KEY KEYWORDS (TRANSFORM ))

REGISTER-IMAGEPROC-OPERATION (NAME FUNCTION)

SHOW-IMAGE-EDITOR (IMAGE)

STORE-IMAGES-WITH-DIRECTORY (KEY)

THUMBNAIL (INPUT-IMAGE &OPTIONAL BGCOLOR MAX-WIDTH MAX-HEIGHT)

MACRO

Public

Undocumented

DEFINE-IMAGEPROC-HANDLER (NAME (&REST ARGUMENTS) &BODY BODY)

WITH-STORE-IMAGE ((VAR IMAGE) &BODY BODY)

WITH-STORE-IMAGE* ((IMAGE) &BODY BODY)

WITH-STORE-IMAGE-FROM-ID ((VAR ID) &REST BODY)

GENERIC-FUNCTION

Public

IMPORT-IMAGE (PATHNAME &KEY TYPE NAME USER KEYWORDS DIRECTORY KEYWORDS-FROM-DIR CLASS-NAME INITARGS (KEYWORDS-FROM-DIR T) (CLASS-NAME 'STORE-IMAGE) &ALLOW-OTHER-KEYS)

Create blob from given source

Undocumented

STORE-IMAGE-ASPECT-RATIO (IMAGE)

Private

Undocumented

STORE-IMAGE-LANDSCAPE-P (IMAGE)

STORE-IMAGE-PORTRAIT-P (IMAGE)

STORE-IMAGE-XML-INFO (IMAGE)

SLOT-ACCESSOR

Public

Undocumented

STORE-IMAGE-HEIGHT (OBJECT)

STORE-IMAGE-KEYWORDS (OBJECT)

SETFSTORE-IMAGE-KEYWORDS (NEW-VALUE OBJECT)

STORE-IMAGE-NAME (OBJECT)

STORE-IMAGE-WIDTH (OBJECT)

Private

Undocumented

STORE-IMAGE-DIRECTORY (OBJECT)

VARIABLE

Private

Undocumented

*CELL-BORDER-WIDTH*

*IMAGEPROC-OPERATIONS*

*SESSION-IMAGE-FONT*

*SESSION-IMAGE-POINT-SIZE*

CLASS

Public

Undocumented

IMAGE-HANDLER

IMAGEPROC-HANDLER

STORE-IMAGE

Private

Undocumented

ARRAY-INDEX

BROWSE-IMAGE-HANDLER

EDIT-IMAGE-HANDLER

EDIT-IMAGES-HANDLER

IMAGE-INTERSECTION-HANDLER

IMAGE-KEYWORD-HANDLER

IMAGE-PAGE-HANDLER

IMAGE-UNION-HANDLER

IMPORT-IMAGES-HANDLER

SESSION-IMAGE-HANDLER

UPLOAD-IMAGE-HANDLER

XML-IMAGE-QUERY-HANDLER