Hi Tyler,

you can access the CMF formatting classes directly:
http://rifers.org/docs/api/com/uwyn/rife/cmf/format/ImageFormatter.html

This will return you a byte array with the image data that has been formatted. The CMF back-ends use this to store the bytes. Instead of doing this, you can serve them directly, by doing this in your element:
FileUtils.copy(new ByteArrayInputStream(bytes), getOutputStream());

If you use OSCache, you can store the byte array in your cache.

Best regards,

Geert

On 27-jan-06, at 16:54, Tyler Pitchford wrote:

I want to dynmically scale images on the fly, then server them out..

1) is there access to the conversion / scaling routines?
2) how do I serve a generated image?

I don't want to store the images in the CMF, I want to store them in
cache and feed them out from there. They don't need to be saved for
long periods so there's no reason to persist them.

Cheers,
  Tyler
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to