— In this paper, we propose an original approach to control camera position and/or lighting conditions in an environment using image gradient information. Our goal is to ensure a good viewing condition and good illumination of an object to perform vision-based task (recognition, tracking, etc.). Within the visual servoing framework, we propose solutions to two different issues: maximizing the brightness of the scene and maximizing the contrast in the image. Solutions are proposed to consider either a static light and a moving camera, eitheror a moving light and a static/moving camera. The proposed method is independent of the structure, color and aspect of the objects. Experimental results on both synthetic and real images are finally presented. I. OVERVIEW In this paper we investigate the problem of relative placement between an object, a camera and a light source. Ensuring an optimal placement of the camera or of a light source is an essential step in the development of industrial...