1. A processing device for compressing an image, said processing device comprises at least a processor operatively coupled to a memory and an encoder, wherein said memory is configured to provide data of an image and at least one size dimension to the encoder, wherein said encoder is configured to receive said data of said image and said at least one size dimension from said memory and comprises a geometry engine, which is further configured to partition the image domain into several substructures each having one of the at least one size dimension; and to define at least one geometric primitive for each substructure on the basis of geometry data defining a positioning of the at least one geometric primitive within the image space, wherein said at least one geometric primitive represents geometrically the substructure, wherein said encoder further comprises a texture engine, which is configured for each substructure to retrieve a subset of data of the image corresponding to the substructure; to determine whether pixels of the retrieved subset are reconstructable from one or more selected pixels as input parameters on the basis of a texture mapping operation in the pixel value space, wherein the selected pixels are representative of the subset of image data and input parameters to the texture mapping operation in pixel value space; if the pixels of the retrieved subset are reconstructable to define data of a texture image in compressed form with the selected pixels; otherwise to define data of a texture image in uncompressed form, which data corresponds to the retrieved subset of image data; and to assign texture mapping data to the geometry data of the substructure for mapping the defined texture image onto the at least one geometric primitive of the substructure, wherein a compressed form of said image comprises the geometry data, the texture mapping data and the texture image data for each substructure.