I want to convert the pdf pages into png and tif images. I am giving the fmt = png / fmt = tif; But still getting the resultant image in JPEG format only.Please help me in getting the correct output.
images = convert_from_path(
pdf_file,
dpi=300,
fmt="png",
size=(1240, None),
output_folder=folder_path,
)
for image in images:
image.save('example.png','PNG')