some compact cameras can have an extension tube attached to the body, sitting over the lens. then a filter can be attached to that tube. there are commercial products available. alternatively you can DIY. or, if possible, just use your hand to hold the filter in front of the lens when taking the shot?