「教程」将大量有序的图片转换为pdf(有序)
Tofloor
poster avatar
neko
deepin
Ecological co-builder
Q&A Team
2020-12-10 01:08
Author

访问原文

使用工具 ImageMagick

  • 步骤1.
    修改配置文件/etc/ImageMagick-6(我的版本为6,如果不知道可以按Tab键自动补全)/policy.xml
    将里的内容全部删除或者注释掉 


  • 步骤2.
    在图片所在目录打开终端执行
    convert $(ls | sort -k 1n) 初级教材.pdf


  • 结束

Reply Favorite View the author
All Replies
element
deepin
2020-12-10 01:13
#1

难道只有我看到图片挂了么??

Reply View the author
neko
deepin
Ecological co-builder
Q&A Team
2020-12-10 01:24
#2
element

难道只有我看到图片挂了么??

现在好了

Reply View the author
ylxdxx
deepin
2020-12-10 01:42
#3

简单快捷

img2pdf --output out.pdf --pagesize A4 *.png


Reply View the author
neko
deepin
Ecological co-builder
Q&A Team
2020-12-10 03:08
#4
ylxdxx

简单快捷

img2pdf --output out.pdf --pagesize A4 *.png



emm

Reply View the author
q77190858
deepin
2020-12-10 03:10
#5
ylxdxx

简单快捷

img2pdf --output out.pdf --pagesize A4 *.png


这样顺序容易乱

img2pdf --output out.pdf --pagesize A4 $(ls | sort -k 1n)


Reply View the author
ylxdxx
deepin
2020-12-10 06:19
#6
neko


emm

若有透明等效果确实是个问题,需要提前去除,不然没有背景没法显示,若用convert转换,需注意里面的参数,有时不是无损转换。不过jpg的图片能添加阿尔法通道?

Reply View the author
ylxdxx
deepin
2020-12-10 06:20
#7
q77190858

这样顺序容易乱

img2pdf --output out.pdf --pagesize A4 $(ls | sort -k 1n)


基本不会乱,排下序更保险

Reply View the author