# Load the circular logo without text input_path_no_text = "/mnt/data/logo-jogjamarketplace_circle_no_text.png" output_path_new_text = "/mnt/data/logo-jogjamarketplace_circle_updated_text.png" # Open the image original = Image.open(input_path_no_text) # Prepare to edit (re-adding text) draw = ImageDraw.Draw(original) font_size = 40 # Adjust font size for circular space font = ImageFont.truetype("/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf", font_size) # Define new text position (centered) new_text = "JogjaMarketplace" text_width, text_height = draw.textsize(new_text, font=font) image_width, image_height = original.size text_x = (image_width - text_width) // 2 text_y = image_height - text_height - 20 # Position near the bottom # Draw new text on the image draw.text((text_x, text_y), new_text, font=font, fill="black") # Save the updated logo original.save(output_path_new_text) output_path_new_text