Diabetic retinopathy is a leading cause of visual impairment and blindness in diabetes sufferers. Early detection is crucial to prevent severe outcomes. This study presents an image processing method for retinal images to aid early detection. The method involves four steps: image enlargement, preprocessing, enhancement, and convolution. First, an algorithm enlarges the retinal image to increase resolution and reveal finer details. Preprocessing uses a min-max filtering algorithm to reduce noise and improve image quality. Next, specific pixel range enhancement techniques further refine the image and highlight relevant features. Finally, convolution with customized kernels detects and emphasizes areas indicating diabetic retinopathy, such as aneurysms and hemorrhages. Experimental results show improvement in image clarity and detail, enabling more accurate detection of diabetic retinopathy features. The correlation results are as follows: Filtering (0.35275, 0.20157, 0.4345), Enhancement (0.3214, 0.15823 0.34674), and Convolution (0.33542, 0.15758, 0.36826). The proposed algorithm enhances early detection and diagnosis by improving retinal image quality. Future work can optimize the algorithm and validate results with larger datasets, aiming to refine the determination of areas or pixel values relevant to diabetic retinopathy.