The invention concerns a method and a device for processing images, e.g. for encoding or decoding the images into or from a bitstream, using a palette prediction mode as defined in HEVC SCC. The images are split into hierarchical coding structures. At the decoder, the method comprises: decoding encoded data of two self-contained coding structures having the same hierarchical level, using a palette coding mode which uses, for each processed block of the two coding structures, an associated palette that comprises entries associating respective entry indexes with corresponding pixel values, wherein the palette associated with each processed pixel block is predicted from a palette predictor using prediction information from the bitstream; obtaining, from the bitstream, a palette predictor initializer associated with a coding structure hierarchically above the two self-contained coding structures; and initializing the palette predictor for each self-contained coding structure using the same obtained palette predictor initializer.