I found although it says JSON error, out of memory etc. The images were
actually generated and resized OK.

But just the error msg looks pretty bad for users. If I used a smaller size
image like 1MB, it is OK.

I hope anyone who had the same problem can help.

Cheers,

On Wed, May 30, 2012 at 2:18 PM, Xiaofeng Liu <[email protected]>wrote:

> Thanks Geoff,
>
> It's much more clear now. Although I got an error which I had no clue at
> the moment.
>
> So I put the properties for image source and related images in my custom
> type like below:
>
>
>     <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="FitInside" ftImageWidth="286"
> ftImageHeight="209"
>                 ftQuality="0.8" ftInterpolation="blackman">
>
>
>     <cfproperty name="imageDepartmentAd" type="string"
>                 ftSeq="13" ftFieldset="Advertisement" ftLabel="Department
> Page Ad Image"
>
>                 ftType="image"
> ftDestination="/images/advertisements/department"
>                 ftAllowUpload="false"
> ftSourceField="imageSourceID:SourceImage"
>                 ftAutoGenerateType="FitInside" ftImageWidth="242"
> ftImageHeight="200"
>                 ftQuality="0.8" ftInterpolation="blackman"
>                 ftHint="">
>
> This gives me the interface like:
>
>
>
> When I went ahead and create a new image I tested by uploading a 3MB large
> image to see how it goes, then I got an 'Out of Memory' error for the
> thumbnail image it tried to generate. There's no problem with the medium
> sized image.
>
>
>
> Can you see is there anything I can do with this?
>
> Thanks
>
>
> On Wed, May 30, 2012 at 12:25 PM, Geoff Bowers <[email protected]>wrote:
>
>> On Wednesday, 30 May 2012 11:20:42 UTC+10, Xiaofeng Liu wrote:
>>
>>> 1. For the ftAutoGenerateType, what are the differences between "none,
>>> center, fitinside, forcesize, pad, topcenter, topleft, topright, left,
>>> right, bottomleft, bottomcenter and bottomright"?
>>>
>>
>>
>>    - none: as it says
>>    - center, topcenter, topleft, topright, left, right, bottomleft,
>>    bottomcenter and bottomright: forms of aspect crop (ie. resizes the image
>>    without distortion but may need to crop to maintain aspect)
>>    - fitinside: resizes image in its current ratio till it "fits inside"
>>    your boundaries
>>    - forceresize: don't use this
>>    - pad: pads image to fit desired ratio.. yeah probably don't use this
>>    either
>>
>>
>> Hope that helps,
>>
>> -- geoff
>> http://www.daemon.com.au/
>> skype. gb.daemon
>> twitter. @modius
>>
>> --
>> 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
>>
>
>
>
> --
> Best regards,
>
> Xiaofeng,^_^
>



-- 
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