This is the trivial-thumbnail Reference Manual, version 1.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:57:34 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
trivial-thumbnail
Tiny library to create image thumbnails with imagemagick.
Yukari Hafner <shinmera@tymoon.eu>
Yukari Hafner <shinmera@tymoon.eu>
(GIT https://github.com/Shinmera/trivial-thumbnail.git)
zlib
1.1.0
uiop
(system).
thumbnail.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
trivial-thumbnail/trivial-thumbnail.asd
trivial-thumbnail
(system).
trivial-thumbnail/thumbnail.lisp
trivial-thumbnail
(system).
*convert-bin*
(special variable).
*mogrify-bin*
(special variable).
convert
(function).
create
(function).
mogrify
(function).
binary-alternatives
(function).
locate-binary
(function).
run-program
(function).
Packages are listed by definition order.
trivial-thumbnail
thumbnail
org.tymoonnext.trivial-thumbnail
common-lisp
.
*convert-bin*
(special variable).
*mogrify-bin*
(special variable).
convert
(function).
create
(function).
mogrify
(function).
binary-alternatives
(function).
locate-binary
(function).
run-program
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
String or pathname designating the location of the imagemagick CONVERT binary.
String or pathname designating the location of the imagemagick MOGRIFY binary.
Runs imagemagick’s CONVERT on IN with the result to OUT using the command-line ARGS.
Creates a thumbnail of IN with the result to OUT.
IN — A pathname or string to the source image. Strings are parsed using
UIOP:PARSE-NATIVE-NAMESTRING.
OUT — A pathname or string to the source image or NIL. If NIL, OUT is the
same as IN, with ’thumb-’ prefixed to the pathname-name.
WIDTH — The width of the thumbnail in pixels.
HEIGHT — The height of the thumbnail in pixels.
CROP — How to create the thumbnail. Can be one of the following:
NIL Same as :CONTAIN
:CONTAIN Scale the image to fit the larger dimension.
:COVER Scale the image to fit the lower dimension, then crop.
:WIDTH Scale the image to HEIGHT and crop the width down to fit WIDTH.
:HEIGHT Scale the image to WIDTH and crop the height down to fit HEIGHT.
T Crop the image width and height to fit WIDTH and HEIGHT.
QUALITY — Percentage for the quality to use (0-100).
PRESERVE-GIF — Whether to run imagemagick with -coalesce, which preserves
GIF animations, but will take more time to compute.
IF-EXISTS — What to do if OUT exists. Can be one of the following:
NIL Don’t create a thumbnail and just return NIL.
:ERROR Signal an error.
:WARN Signal a warning.
:SUPERSEDE Overwrite the file.
Returns OUT.
Runs imagemagick’s MOGRIFY on IN using the command-line ARGS.
Return a list of poissible alternative locations for the specified binary.
Iterates through the alternatives and, if one can be found by PROBE-FILE, sets the SYMBOL-VALUE of LABEL to that path. Otherwise signals a WARNING.
Wrapper around UIOP:RUN-PROGRAM that returns the string output of the command and
passes the argslist to UIOP:ESCAPE-COMMAND. Also accepts a pathname as the executable designator.
Jump to: | B C F L M R |
---|
Jump to: | B C F L M R |
---|
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | F P S T |
---|
Jump to: | F P S T |
---|