<?php header('Content-type: image/jpeg'); // Create Image From Existing File $jpg_image = imagecreatefromjpeg('img.jpg'); // Allocate A Color For The Text $white = imagecolorallocate($jpg_image, 255, 255, 255); // Set Path to Font File $font_path = 'E:\serv\OSPanel\domains\localhost\verdana.ttf'; // Set Text to Be Printed On Image $text = "**$name**"; $text2 = "**$description**"; // Print Text On Image imagettftext($jpg_image, 25, 0, 75, 300, $white, $font_path, $text); imagettftext($jpg_image, 25, 0, 100, 400, $white, $font_path, $text2); // Send Image to Browser imagejpeg($jpg_image,"**$name**.jpg"); // Clear Memory imagedestroy($jpg_image);?> 1) I want to output from the database the name and description on the image, and save the file with the product name jpg. 2) how to do it automatically for all products by product name.