Creating JPG thumbnails from PDF causes problems with new version of ImageMagick

有些话、适合烂在心里 提交于 2019-12-04 12:56:26

I solved this problem by passing the extra -flatten option. Now my thumbnails are render correctly.

What if you swap options? This may save you from running the 2 different commands. Because these two commands:

convert 'in.pdf[0]' -resize "100x140>" -colorspace 'rgb' 'out.jpg'
convert 'in.pdf[0]' -colorspace 'rgb' -resize "100x140>" 'out.jpg'

will cause (recent versions of) ImageMagick to process the files in a different way; it each times follows the order given on the commandline (this is not true for older versions).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!