You can extend dmImage into your project or a plugin and define extra
image sizes.
example code for your dmImage
<cfproperty ftSeq="22" ftFieldset="Image Files" name="SourceImage"
type="string" hint="The URL location of the uploaded image"
required="No" default=""
ftType="Image" ftCreateFromSourceOption="false" ftDestination="/
images/dmImage/SourceImage" ftlabel="Source Image" ftImageWidth=""
ftImageHeight="" />
<cfproperty ftSeq="24" ftFieldset="Image Files" name="StandardImage"
type="string" hint="The URL location of the optimised uploaded image
that should be used for general display" required="no" default=""
ftType="Image" ftDestination="/images/dmImage/standardImage"
ftImageWidth="400" ftImageHeight="800" ftAutoGenerateType="FitInside"
ftSourceField="SourceImage" ftCreateFromSourceDefault="true"
ftAllowUpload="true" ftlabel="Standard Size Image" />
<cfproperty ftSeq="26" ftFieldset="Image Files" name="SmallImage"
type="string" hint="The URL location of the optimised uploaded image
that should be used for general display" required="no" default=""
ftType="Image" ftDestination="/images/dmImage/SmallImage"
ftImageWidth="350" ftImageHeight="350" ftAutoGenerateType="FitInside"
ftSourceField="SourceImage" ftCreateFromSourceDefault="true"
ftAllowUpload="true" ftlabel="Small Size Image" />
<cfproperty ftSeq="28" ftFieldset="Image Files" name="ThumbnailImage"
type="string" hint="The URL location of the thumnail of the uploaded
image that should be used in " required="no" default=""
ftType="Image" ftDestination="/images/dmImage/thumbnailImage"
ftImageWidth="80" ftImageHeight="80" ftAutoGenerateType="FitInside"
ftPadColor="##ffffff" ftSourceField="SourceImage"
ftCreateFromSourceDefault="true" ftAllowUpload="true"
ftlabel="Thumbnail Image" />
<cfproperty ftSeq="30" ftFieldset="Image Files" name="XLargeImage"
type="string" hint="The URL location of the XLarge of the uploaded
image that should be used in " required="no" default=""
ftType="Image" ftDestination="/images/dmImage/xLargeImage"
ftImageWidth="1200" ftImageHeight="800" ftAutoGenerateType="FitInside"
ftSourceField="SourceImage" ftCreateFromSourceDefault="true"
ftAllowUpload="true" ftlabel="Extra Large Image" />
Chris.
On Aug 7, 4:56 pm, Phil Kemp <[email protected]> wrote:
> Greetings,
>
> I was just wondering if it would be possible to introduce a new image size
> for my project? I will be using the other predefined image sizes on some of
> the pages, but one page it is required to always have the image at a certain
> size. How do I go about getting this added to my image type? I guess FarCry
> handles the automatic resizing as well so how would I incorporate this?
>
> I know it sounds like a massive job for me to put it in, but the only
> alternative is to use the Source Image and scale it down to the correct size
> which could take time on some of the slower computers (which, sod's law,
> will be about 90% of the people who will end up viewing the site!)
>
> Cheers,
> Phil
> --
> View this message in
> context:http://www.nabble.com/Image-Sizing-tp24867375s621p24867375.html
> Sent from the FarCry - Dev mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---