A secret image sharing (SIS) scheme inserts a secret message into shadow images in a way that if shadow images are combined in a specific way, the secret image can be recovered. A 2-out-of-2 sharing digital image scheme (SDIS) adopts a color palette to share a digital color secret image into two shadow images, and the secret image can be recovered from two shadow images, while any one shadow image has no information about the secret image. This 2-out-of-2 SDIS may keep the shadow size small because by using a color palette, and thus has advantage of reducing storage. However, the previous works on SDIS are just 2-out-of-2 scheme and have limited functions. In this paper, we take the lead to study a general n-out-of-n SDIS which can be applied on more than two shadow. The proposed SDIS is implemented on the basis of 2-out-of-2 SDIS. Our main contribution has the higher contrast of binary meaningful shadow and the larger region in color shadows revealing cover image when compared with previous 2-out-of-2 SDISs. Meanwhile, our SDIS is resistant to colluder attack.Recently, Wei et al. use the bit-wise XOR operation to design a (2, 2) sharing digital image scheme (SDIS) [17] to share a 256-color (or true color) digital image. Wei et al.'s (2, 2)-SDIS is also a type of (k, n)-SIS where k = n = 2. Wei et al.'s (2, 2)-SDIS is the first SIS scheme using a 256-color palette. This color palette has 256 colors, where each color is composed of red (R), green (G), and blue (B) color planes. Each color and is chosen from a palette of 16,777,216(=2 24 ) colors (24 bits: each color plane has 8 bits). In VGA cards, 256 on-screen colors are chosen from a color palette, and these colors are most visible to the human eye and meanwhile conserve a bandwidth. When using a color palette, each pixel is represented by a color index in a 256-color color palette. Consider an example, a 256 × 256-pixel image. The file size is 256 × 256 × 1 bytes (color indices) +256 × 3 bytes (color palette) = 66,304 bytes, but is 256 × 256 × 3 = 196,608 bytes for using 24-bit true color format. Thus, the file size of a color image can be kept small when represented by a color palette. Because Wei et al.'s (2, 2)-SDIS is based on color palette, and thus it has the advantage of reducing storage.However, there are three weaknesses in Wei et al.'s SDIS: the incorrect assignment of color palette data for the color index 255, the erroneous recovery in secret image, and the partial region in shadow revealing the cover image. In [19], Yang et al. address these weaknesses and propose a new (2, 2)-SDIS. Both Wei et al.'s (2, 2)-SDIS and Yang et al.'s (2, 2)-SDIS are simple 2-out-of-2 scheme and have limited applications. In this paper, we take the lead to study a general (n, n)-SDIS, which can be applied on any n ≥ 3. The main weakness of Wei et al.'s (2, 2)-SDIS is the incorrect assignment of color palette data for some color indices, and this is tackled by using a complicated approach, partitioned sets, in Yang et al.'s (2, 2)-SDIS. In the proposed (n, n)-SDIS, beca...