Hi to all,
my goal is to keep code short and things simple.
My approach to manage a small user’s image gallery is to let them upload image files of arbitrary size within max, then provide in views img sources generated by another controller.
That controller’s job is to check if user is logged, then read the file and serve it with image/jpg headers.
Until now there isn’t any resizing/cropping/watermarking. Images are served raw as uploaded. I don’t want to show the raw source image but a controller generating image on the fly, to use first as thumbailer, then as in layout image with website name watermarked.
To to this I’ve read in user_guide about a not well documented dynamic_output option of watermarking.
The goal is to write a controller “http://website.tld/image/thumb/12/345.jpg” and “http://website.tld/image/full/12/345.jpg”, having image as controller, thumb/full as method, 12 as user_id, 345 as raw image filename.
I’m wondering about storing images into user_id directory with arbitrary or random filename in it, to catch with CI’s file helper.
Some help?
Best Regardz!
