add converter from text to image

This commit is contained in:
Uwe Steinmann 2023-01-04 14:32:16 +01:00
parent 18ea59bfc7
commit 722b5dfba5

View File

@ -90,6 +90,9 @@ image/jpeg
image/png
convert -resize %wx '%f' 'png:%o'
text/plain
convert -density 100 -resize %wx 'text:%f[0]' 'png:%o'
application/pdf
gs -dBATCH -dNOPAUSE -sDEVICE=png16m -dPDFFitPage -r72x72 -sOutputFile=- -dFirstPage=1 -dLastPage=1 -q '%f' | convert -resize %wx png:- '%o'