An encoding system based on a damped triangular function is presented. The image encoding is implemented by a computational algorithm, which transforms the image intensity to a triangular function. This procedure generates a random pattern from the original image. Thus, a secret image is obtained to perform the electronic transmission. The decoding algorithm is implemented by an inverse discrete damped triangular function. This procedure generates a discrete sequence by sampling the damped triangular function. The sequence contains the key data to compute the image decoding. Then, the original image is retrieved by matching the intensity of the secret image in the discrete sequence. The viability of the proposed method is established based on the quality of the image encoding and decoding. These parameters are evaluated based on traditional encoding methods to provide evidence of the power of the proposed method. Thus, the contribution of the proposed technique in the field of image encoding is stated. The technique is tested by encoding real objects and its results are presented in computational form.