image requiredThe image path or URL to show, usually a file-field getter such as {_#FILE____} or {img_url.........}. With an empty info the path is only wrapped into the img.php URL (the file is not loaded); the metadata modes (width, height, mime) do load it. An empty value returns an empty string.
phpthumb_params optionalResize and processing options passed straight to phpThumb, written as a URL query string. Common keys: w (width), h (height), zc=1 (zoom-crop to exactly w by h), iar=1 (keep aspect ratio inside w by h), q (JPEG quality), f (output format). Join several with the and-sign, for example w=150 and h=150 and zc=1. If left empty, the image path is returned unchanged (no resizing).
info optional default urlSelects what the command returns. Empty or url returns the relative img.php URL string (the default, for use inside your own img src). rawurl returns the absolute URL. im, img and imgb return a complete img tag (imgb adds border 0); picture returns a responsive picture element. width, height, mime and imgtype return metadata read from the actual image file (slower; needs a reachable image). html or hw returns the height-and-width attribute string.
param1 optionalIn the tag modes (im, img, imgb) this becomes the title and alt text of the img tag. In picture mode it is the picture title and alt. Tags are stripped and the value is escaped. Ignored by the URL and metadata modes.
param2 optionalIn the tag modes (im, img, imgb) this is appended verbatim as extra HTML attributes on the img tag, for example class=thumb or width=150. In picture mode it is added to the inner img tag. Ignored by the URL and metadata modes.
{img:photos/bee.jpg::width}
<img src="{img:photos/bee.jpg:w=150&h=150&zc=1}" alt="A bee on a flower">

[{img:photos/bee.jpg:w=150&h=150&zc=1}]
[{img:photos/bee.jpg:w=320}]
[{img:photos/bee.jpg}]
[{img::w=150&h=150}]
[{img:photos/bee.jpg:w=99&h=99&zc=1:url}]
[{str_replace:["/aaa/img.php","/aadev/img.php"]:img.php:{img:photos/bee.jpg:w=150&h=150&zc=1}}]
{img:photos/bee.jpg:w=150&h=150&zc=1:im:A bee}

{img:photos/bee.jpg:w=300&h=200&zc=1:picture:A bee}