Most pilots i fly with and of course myself as well have a camera with them during their normal duty. We shoot quite a lot of pictures, from inside the aircraft and running witless around fuelers, baggage handlers and so on outside the aircraft as well.
As long as it is done in a common sense way we do not mind at all if pictures are taken during boarding and deboarding, and we don't mind if someone takes a picture from the flight deck on the ground. However in the latter case we usually insist of the picture being taken in such a way that we are not identifiable and that it isn't posted freely on the internet (well, we can't really enforce that of course) since our company doesn't really like that and has given out reprimands for pictures of company property that appeared on the net.