Hi folks,

In my custom content type, I want to auto generate 2 images from a source
image and do the resize accordingly like:

    <cfproperty name="imageSourceID" type="string"
                ftSeq="11" ftFieldset="Advertisement" ftLabel="Source Image"
                ftType="uuid" ftJoin="dmImage"
                ftHint="Select an image from the image library or create a
new image.">

    <cfproperty name="imageNPA" type="string"
                ftSeq="12" ftFieldset="Advertisement" ftLabel="Home Page Ad
Image"
                ftType="image" ftDestination="/images/advertisements/home"
                ftAllowUpload="false"
ftSourceField="imageSourceID:SourceImage"
                ftAutoGenerateType="center" ftImageWidth="286"
ftImageHeight="209"
                ftQuality="0.8">

    <cfproperty name="imageDepartmentAd" type="string"
                ftSeq="13" ftFieldset="Advertisement" ftLabel="Thumbnail
Image"
                ftType="image"
ftDestination="/images/advertisements/department"
                ftAllowUpload="false"
ftSourceField="imageSourceID:SourceImage"
                ftAutoGenerateType="center" ftImageWidth="242"
ftImageHeight="200"
                ftQuality="0.8" ftHint="">

My questions are:

1. For the ftAutoGenerateType, what are the differences between "none,
center, fitinside, forcesize, pad, topcenter, topleft, topright, left,
right, bottomleft, bottomcenter and bottomright"?

2. I found users tend to upload huge images like 4MB jpeg, is there any way
I can restrict the source image file size? Like the property for 'file'
type ftMaxSize="1048576". I couldn't find a similar property in docs for
image type.

3. For ftInterpolation, how it works with ftQuality. I'm not clear about
the usage of them.


Thanks a lot for any helps.



-- 
Best regards,

Xiaofeng,^_^

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to