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.
"-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 ?
Add text
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 44926
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Add text
You can use -text_font arial -text_pos 0 0 -text "a text"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.
"-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 ?
Pierre.
-
- Posts: 291
- Joined: Sun Jun 11, 2006 2:43 pm
Bug ?
-text_font arial -text_pos 100 100 -text "a text" -out png x.bmp-text_font arial -text_pos 0 0 -text "a text"
Thanks, but this example does NOT work.
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.
-
- Author of XnView
- Posts: 44926
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Bug ?
Sorry there is font size, too. So -text_font arial 10NTOSKRNL_VXE wrote:-text_font arial -text_pos 100 100 -text "a text" -out png x.bmp-text_font arial -text_pos 0 0 -text "a text"
Thanks, but this example does NOT work.
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.
All parameters:
-text_font arial 10 -text_pos 0 0 -text "Sample text"
Pierre.