Kay, > I have a simple requirement on one particular site: when FarCry > generates thumbnails, it pads them with a white background. On this > site, I need them padded with black.
Try this: ftAutoGenerateType="pad" ftPadColor="##000000" > Come to think of it, cropping rather than padding would be another > option for me. I'm kinda hoping that Jeff or someone who's done some > work with the CFImage plugins sees this soon and throws me a > lifeline :) In the cfimage plugin, I added a function to do cropping (currently it is only available in the plugin, not in standard FarCry image tools). To use it, try the following: ftAutoGenerateType="cropToFit" And of course, you can combine settings. Using one of the examples from the docs: ftAutoGenerateType="cropToFit" ftLCustomEffects="roundCorners();reflect();" ftImageWidth="100" ftImageHeight="140" NOTE: Make sure that if you use roundCorners() or reflect() that you give it the backgroundColor attribute so that it doesn't default to white (You can use text or hex values - whatever cfimage accepts). Read more about it in the docs. Example: ftLCustomEffects = "roundCorners (backgroundColor='black');reflect(opacity=40,backgroundColor='black');" I just realized that I never really documented the cropToFit feature (even though I released the plugin over a year ago). Sorry about that :). It was something I needed at the time and have used it several times since then. The only documentation about it mentioned was under the "What's New?" section in the online docs. It will crop to fit the dimensions set by your width and height. The only downside is that the function assumes you want to start from point zero,zero - top left corner (it would have gotten too complicated to figure out a way to have the user choose a different starting point). Not all is lost though. There is another image effects type plugin written by Daemon called FarCry Picnik which allows you to edit your pictures with the picnik.com flex tools. Find out more about the FarCry plugin at http://docs.farcrycms.org/display/FCPLUG/FarCry+Picnik . Regards, -- Jeff Coughlin Web Application Developer [EMAIL PROTECTED] http://jeffcoughlin.com On Oct 26, 2008, at 9:45 AM, Kay Smoljak wrote: > > So, the shared host is providing the core, or do you have multiple > sites sharing the core? > Multiple sites share the same core. > > > I think you would need to reload the application to pick up on the > extended property. Did you try that or are you unable to that as > well? > I did reload the application - I have extended other components no > problem. From a quick look through the ImageUtilities and Image > CFCs, they don't seem to be using that attribute anyway (if they > are, it's very well obscured). At any rate seeing as I'm using the > CFImage plugin anyway I figure that probably has a better way to do > it. > > > I am looking into the use of CF8's image manipulation tags as > well. I don't think I have seen a way to 'pad' the images, but you > wouldn't have to > > since the images wouldn't need to fit into a predefined image size. > > You can definitely pad images using CF8's built-in image > manipulation functions - they're pretty powerful. I'm not sure what > you mean by "wouldn't need to fit into a predefined size" - if you > want to create thumbnails without cropping you definitely need to pad. > > Come to think of it, cropping rather than padding would be another > option for me. I'm kinda hoping that Jeff or someone who's done some > work with the CFImage plugins sees this soon and throws me a > lifeline :) > > Cheers, > K. > > -- > Kay Smoljak > business: www.cleverstarfish.com > coldfusion: kay.smoljak.com > personal: enterthegoatlady.com | heapsbad.com > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
