79703546

Date: 2025-07-16 14:12:16
Score: 0.5
Natty:
Report link

When using drawImage method, you need to provide width and height:

from reportlab.lib.utils import ImageReader

image_path = '/opt/rspro/home/e8409/projects/CRAMM logo.png'
img = ImageReader(image_path)
img_width, img_height = img.getSize()
canvas.drawImage(image_path, 0, 0, width=desired_width, height=desired_height, preserveAspectRatio=True)
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: RCDevs Security