Add text

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Post Reply
User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

Add text

Post by DOS386 » Wed Dec 27, 2006 11:41 pm

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 ?
There is indeed no WinZIP under my rock.

User avatar
xnview
Author of XnView
Posts: 32459
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Add text

Post by xnview » Thu Dec 28, 2006 4:42 pm

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"
Pierre.

User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

Bug ?

Post by DOS386 » Fri Dec 29, 2006 12:29 am

-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.
There is indeed no WinZIP under my rock.

User avatar
xnview
Author of XnView
Posts: 32459
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Bug ?

Post by xnview » Fri Dec 29, 2006 10:48 am

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"
Pierre.

Post Reply