Hi,
Is there an input/output filter out there that will strip the file extension from a path. So if the path inputed is:
assets/video/2011/video.ogg
It would output
assets/video/2011/image
I need it to work for multiple extensions, well say multiple I mean ogg,ogv,mp4,flv.
I also want to do something similar for images. But instead of strip the extension i to pretend the url with a director. For example
assets/images/event/image.jpg
Would get prepended with THUMB
assets/images/event/THUMB/image.jpg
Any suggestions?
Thanks
B