Steps to reproduce:
- 1. echo "test" > test.txt
2. convert -background transparent -fill white -font Helvetica -size 1920x121.2 -gravity south caption:@test.txt -type truecolormatte PNG32:/tmp/tmpZzdLtm.png
Observed results:
CPU stuck at 100%
Expected results:
Process finishes after a few seconds and generates the transparent image with text in it. I also tried changing all the other parameters (font, size, gravity, etc.) and it produces the same behavior.
Running just
Code: Select all
convert caption:@test.txt -type truecolormatte PNG32:/tmp/tmpZzdLtm.png
Code: Select all
convert: not authorized `@test.txt' @ error/property.c/InterpretImageProperties/3307.
Code: Select all
convert -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-05-16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
Code: Select all
txt_clip = ( TextClip(fullLine,color='white',method='caption',size=(clip.size[0],clip.size[1]*0.15),font='Helvetica',align="south")
.set_duration(4)
.set_position(("center","bottom")) )
Could you fix this, and, ideally, please give me a workaround to generate captions based on a text file?
Thanks