Regression: unable to create caption with convert tool
Posted: 2016-06-04T08:53:52-07:00
After an update from Debian oldstable to Jessie, the convert command locks my CPU up at 100% and never completes (even after a long time). The caption is specified using a @ syntax that's generated by Moviepy and previously worked just fine. Specifying the caption as text works around this regression.
Steps to reproduce:
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
Results in:
Version
The command is generated by the following Moviepy code:
However, I don't consider this to be the root cause, as it worked before using the same generated syntax.
Could you fix this, and, ideally, please give me a workaround to generate captions based on a text file?
Thanks
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