image

image

Field component to liase with all Image types

formtools.image:

Attributes

NameRequiredDefaultOptionsDescription
ftstyleNo???
ftDestinationNo/images???
ftCreateFromSourceOptionNotrue???
ftCreateFromSourceDefaultNotrue???
ftAllowUploadNotrueIf there is more than one image, e.g thumbnail, use this to allow uploading a different thumbnail or turn this off to only autogenerate thumbnail from source image
ftAllowResizeNotrueWill not allow any resize options if switched off
ftAllowResizeQualityNofalseWill not allow any quality change options if switched off
ftImageWidthNoUse to resize an image from a source image
ftImageHeightNoUse to resize an image from a source image
ftAutoGenerateTypeNoFitInsideAuto generate options include: none, center, fitinside, forcesize, pad, topcenter, topleft, topright, left, right, bottomleft, bottomcenter, bottomright.
ftPadColorNo##ffffffIf ftAutoGenerateType = pad, this will be the colour of the pad
ftShowConversionInfoNotrueSet to false to hide the conversion information that will be applied to the uploaded image.
ftAllowedExtensionsNojpg,jpeg,png,gifThe extensions allowed to be uploaded.
ftcustomEffectsObjNameNo
ftlCustomEffectsNo
ftConvertImageToFormatNo
ftbSetAntialiasingNo
ftInterpolationNo
ftQualityNo
ftbUploadOnlyNofalseOnly upload the image and do not optimize or process it. Very useful for source images. Otherwise FarCry will optimize the source image, then read from that dequalitized image to make other optimized images. Can be used for any image field (not just source images).
ftCropPositionNocenterUsed when ftAutoGenerateType = aspectCrop
ftThumbnailBevelNofalse???
ftWatermarkNoThe path relative to the webroot of an image to use as a watermark.
ftWatermarkTransparencyNo90The transparency to apply to the watermark.
ftSizeLimitNo0File size limit for upload. 0 is no-limit
ftShowMetadataNotrueIf this is set to false, the file size and dimensions of the current image are not displayed to the user