Page 1 of 1

Add text

Posted: Wed Dec 27, 2006 11:41 pm
by DOS386
I tried to add text into images with NC and there seem to be problems.
Probably I am doing something wrong but maybe there are also bugs. :bug:

"-text string" "-addtext"

"text" or "addtext" ??? XNview generates "addtext" and NC does NOT
recognize it.

The text itself must be quoted ?

How to set position, rotation, colours, font and size etc. ? I tried something
but it gets mostly ignored.

Could you provide a more detailed manual, as a text file bundled with
NCONVERT, not only in this forum ? The texts in latest NCONVERT package
are outdated and don't provide too much info on syntax and examples.

Fonts: What fonts are available, or where do they come from ?

Re: Add text

Posted: Thu Dec 28, 2006 4:42 pm
by xnview
NTOSKRNL_VXE wrote:I tried to add text into images with NC and there seem to be problems.
Probably I am doing something wrong but maybe there are also bugs. :bug:

"-text string" "-addtext"

"text" or "addtext" ??? XNview generates "addtext" and NC does NOT
recognize it.

The text itself must be quoted ?

How to set position, rotation, colours, font and size etc. ? I tried something
but it gets mostly ignored.

Could you provide a more detailed manual, as a text file bundled with
NCONVERT, not only in this forum ? The texts in latest NCONVERT package
are outdated and don't provide too much info on syntax and examples.

Fonts: What fonts are available, or where do they come from ?
You can use -text_font arial -text_pos 0 0 -text "a text"

Bug ?

Posted: Fri Dec 29, 2006 12:29 am
by DOS386
-text_font arial -text_pos 0 0 -text "a text"
-text_font arial -text_pos 100 100 -text "a text" -out png x.bmp

Thanks, but this example does NOT work. :bug:

The "-text_font" breaks the thing and I get 6 errors about file not found,
affectig files "100" "100" "-text" "a text" "-out" "png", resulting in
a dummy "conversion" of x.bmp into identical x.bmp.

Removing "-text_font" helps. Also, "-text_rotation" seems to work, as long
as no "-text_font" is present.

Re: Bug ?

Posted: Fri Dec 29, 2006 10:48 am
by xnview
NTOSKRNL_VXE wrote:
-text_font arial -text_pos 0 0 -text "a text"
-text_font arial -text_pos 100 100 -text "a text" -out png x.bmp

Thanks, but this example does NOT work. :bug:

The "-text_font" breaks the thing and I get 6 errors about file not found,
affectig files "100" "100" "-text" "a text" "-out" "png", resulting in
a dummy "conversion" of x.bmp into identical x.bmp.

Removing "-text_font" helps. Also, "-text_rotation" seems to work, as long
as no "-text_font" is present.
Sorry there is font size, too. So -text_font arial 10

All parameters:
-text_font arial 10 -text_pos 0 0 -text "Sample text"