This paper deals with the challenge of building the semantic content of images automatically through visual rules. More specifically, the development of an advanced, content-based indexing is described, based on the extraction from images of visual rules between textures and colors, and on a clustering algorithm. The algorithm creates a visual feature book that makes the rule extraction possible.