Method for producing an identity document comprising a three-dimensional portrait image (52; D) of a person, comprising the steps of: - providing a two-dimensional basic image of the person, wherein the basic image is constructed from pixels and the pixels are positioned along image lines (l 11...l 1n), - supplying image values associated with the pixels of the basic image to a processing device, - determining, in the processing device, the position of a number of facial points (55, 56) in the two-dimensional basic image, - forming, in the processing device, a three-dimensional primary form of the person on the basis of these facial points (55, 56) in an image area, - projecting, in the image area, the basic image from a projection surface (x, y, zp) onto the three-dimensional primary form to thereby supply a three-dimensional facial form, - calculating, in the processing device, m-1 rotated images (B, C), m being larger than 1, constructed from pixels and rotated around a rotation point through a rotation angle, wherein the m-1 rotated images (B, C) are calculated on the basis of the basic image and formed through rotation of the facial form and projection thereof onto the projection surface (x, y, zp), - dividing the m-1 rotated images (B, C) into image lines (l 21...l 2n)... (l m1...l mn), - forming groups of corresponding image lines (l 11...l m1), (l 12...l m2)... (l 1n...l mn) for the m images (A and B, C), including the basic image and the m-1 rotated images (B, C), - supplying image values associated with pixels located along the image lines for the groups of corresponding image lines to an imaging device (33, 34, 36, 38), and - applying image intensities and/or colours corresponding to the image values with the imaging device (33, 34, 36, 38) onto a substrate under a pattern of linear lenses (3, 4, 5), in such a way that the image intensities and/or colours of each group of corresponding image lines are applied under a linear lens associated with the group. - providing a two-dimensional basic image of the person, wherein the basic image is constructed from pixels and the pixels are positioned along image lines (l 11...l 1n), - supplying image values associated with the pixels of the basic image to a processing device, - determining, in the processing device, the position of a number of facial points (55, 56) in the two-dimensional basic image, - forming, in the processing device, a three-dimensional primary form of the person on the basis of these facial points (55, 56) in an image area, - projecting, in the image area, the basic image from a projection surface (x, y, zp) onto the three-dimensional primary form to thereby supply a three-dimensional facial form, - calculating, in the processing device, m-1 rotated images (B, C), m being larger than 1, constructed from pixels and rotated around a rotation point through a rotation angle, wherein the m-1 rotated images (B, C) are calculated on the basis of the basic image and formed through rotation of the facial form and projection thereof onto the projection surface (x, y, zp), - dividing the m-1 rotated images (B, C) into image lines (l 21...l 2n)... (l m1...l mn), - forming groups of corresponding image lines (l 11...l m1), (l 12...l m2)... (l 1n...l mn) for the m images (A and B, C), including the basic image and the m-1 rotated images (B, C), - supplying image values associated with pixels located along the image lines for the groups of corresponding image lines to an imaging device (33, 34, 36, 38), and - applying image intensities and/or colours corresponding to the image values with the imaging device (33, 34, 36, 38) onto a substrate under a pattern of linear lenses (3, 4, 5), in such a way that the image intensities and/or colours of each group of corresponding image lines are applied under a linear lens associated with the group.