How to handle multi-page images in PythonMagick?

后端 未结 3 808
臣服心动
臣服心动 2021-02-09 14:16

I want to convert some multi-pages .tif or .pdf files to individual .png images. From command line (using ImageMagick) I just do:

convert multi_page.pdf file_out         


        
3条回答
  •  盖世英雄少女心
    2021-02-09 14:53

    I had the same problem and as a work around i used ImageMagick and did

    import subprocess
    params = ['convert', 'src.pdf', 'out.png']
    subprocess.check_call(params)
    

提交回复
热议问题