Slow 'convert' on captions. And 1 more question.
Posted: 2011-08-31T13:37:44-07:00
Hello!
First of all. I need to create custom background for my images (~ 660x1000) - the repeating arbitrary text rotated at arbitrary angle. Also it would be nice to have gradient on this text (blue-red, from top to bottom, for example, but it's not case).
After reading manuals, I've decided to do the following:
1) Create "plain text" image, for example, 1200x2000;
2) Rotate it to custom angle.
3) Crop image with 660x1000 rectangle
4) And merge it with my "target" image.
But I bumped into problems at steps 1-2.
The command for these steps is (Windows):
convert -size 1200x2000 -font Arial -pointsize 20 -tile gradient:red-blue -size 1200x2000 ^
-fill blue caption:"@some.txt" -rotate 17 funfont_gradients.bmp
It tooks about 60 seconds to complete (windows XP, 3GB, 2.4GHz).
If I put "label" instead of "caption", it tooks just 3-4 seconds, but the result is just one string of text, which disappears at the right edge, of course
Also, if I put just 3-4 lines of text in "mytext.txt", it also works fine.
So it seems that problem in "caption" key.
What can I do?
And, maybe, there's another way to solve my problem? Again, I just need to obtain rotated text as a background. Here's the sample of background: http://diamantsoft.com/sample.jpg
Thanks in advance! And sorry for my English I know that it's not perfect...
First of all. I need to create custom background for my images (~ 660x1000) - the repeating arbitrary text rotated at arbitrary angle. Also it would be nice to have gradient on this text (blue-red, from top to bottom, for example, but it's not case).
After reading manuals, I've decided to do the following:
1) Create "plain text" image, for example, 1200x2000;
2) Rotate it to custom angle.
3) Crop image with 660x1000 rectangle
4) And merge it with my "target" image.
But I bumped into problems at steps 1-2.
The command for these steps is (Windows):
convert -size 1200x2000 -font Arial -pointsize 20 -tile gradient:red-blue -size 1200x2000 ^
-fill blue caption:"@some.txt" -rotate 17 funfont_gradients.bmp
It tooks about 60 seconds to complete (windows XP, 3GB, 2.4GHz).
If I put "label" instead of "caption", it tooks just 3-4 seconds, but the result is just one string of text, which disappears at the right edge, of course
Also, if I put just 3-4 lines of text in "mytext.txt", it also works fine.
So it seems that problem in "caption" key.
What can I do?
And, maybe, there's another way to solve my problem? Again, I just need to obtain rotated text as a background. Here's the sample of background: http://diamantsoft.com/sample.jpg
Thanks in advance! And sorry for my English I know that it's not perfect...