Text shadow in NConvert

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

Moderators: XnTriq, helmut, xnview

Post Reply
felipe4334
Posts: 14
Joined: Mon Nov 07, 2016 4:42 pm

Text shadow in NConvert

Post by felipe4334 »

I exported a XnConver job to Nconvert and it did export all the functions, one of them was the shadow for text therefore, everything looks weird on the NConver job, is there a way that the Nconver do the same job as XnConver? Thanks.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Text shadow in NConvert

Post by cday »

felipe4334 wrote:I exported a XnConvert job to NConvert and it did export all the functions, one of them was the shadow for text therefore, everything looks weird on the NConvert job, is there a way that the Nconvert do the same job as XnConvert?
Could you please post the code you are using, and if possible show the different results produced by XnConvert and NConvert?

I'm not familiar with the shadow effect, if it is supported in NConvert, but someone else may be able to help...
felipe4334
Posts: 14
Joined: Mon Nov 07, 2016 4:42 pm

Re: Text shadow in NConvert

Post by felipe4334 »

cday wrote:
felipe4334 wrote:I exported a XnConvert job to NConvert and it did export all the functions, one of them was the shadow for text therefore, everything looks weird on the NConvert job, is there a way that the Nconvert do the same job as XnConvert?
Could you please post the code you are using, and if possible show the different results produced by XnConvert and NConvert?

I'm not familiar with the shadow effect, if it is supported in NConvert, but someone else may be able to help...

Code: Select all

nconvert.exe -o "OutPutName.jpg" -text_font ADAM.CGPRO 111 -text_color 111 255 255 -text_back 255 0 0 -text_flag center -text_pos 0 0 -text_rotation 0 -text "nameOfPlayerYoutubeEdited" -text_font ADAM.CGPRO 44 -text_color 44 255 0 -text_back 0 0 0 -text_flag bottom-center -text_pos 0 -127 -text_rotation 0 -text "KDAOfPlayer" -text_font ADAM.CGPRO 52 -text_color 52 249 249 -text_back 249 0 0 -text_flag bottom-center -text_pos 0 -10 -text_rotation 0 -text "League Of Legends" -wmopacity 100 -wmfile "D:\Dropbox\Projects\Bot\Record Games\Lolking\replays\champions\400x400.png" -wmflag top-left -wmopacity 100 -wmfile "D:\Dropbox\Projects\Bot\Record Games\Lolking\replays\champions\challenger_1.png" -wmflag top-left Olaf_Splash_Centered_0.jpg
XnConver
http://imgur.com/a/mH6Sd

NConver
http://imgur.com/a/tChg7

Thanks for helping.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Text shadow in NConvert

Post by cday »

O.K. something not right there:

XnConvert output
XnConvert output
NConvert output
NConvert output
Can anyone see the problem :?:

[Please note the spellings of XnConvert and NConvert :wink: ]
felipe4334
Posts: 14
Joined: Mon Nov 07, 2016 4:42 pm

Re: Text shadow in NConvert

Post by felipe4334 »

cday wrote:O.K. something not right there:

XnConvert.jpg
NConvert.jpg
But not a text shadow issue and no text shadow term in your code...

[Please note the spellings of XnConvert and NConvert :wink: ]

Can anyone see the problem :?:
That's what I mean, I have text shadow on XnConvert but not on the NConver code I don't know how or why.
felipe4334
Posts: 14
Joined: Mon Nov 07, 2016 4:42 pm

Re: Text shadow in NConvert

Post by felipe4334 »

Can anybody help
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Text shadow in NConvert

Post by XnTriq »

AFAIK, adding a drop-shadow effect to text is not supported by nConvert.
[color=green]nconvert.exe -help[/color] wrote:

Code: Select all

-text string      : Add a text
-text_font name size  : Font name and size
-text_color r g b : Text color
-text_back r g b  : Text background color
-text_flag pos    : Position of text
    top-left, top-center, top-right
    center-left, center, center-right
    bottom-left, bottom-center, bottom-right
-text_pos x y     : Position or offset
-text_rotation degrees : Rotation
felipe4334
Posts: 14
Joined: Mon Nov 07, 2016 4:42 pm

Re: Text shadow in NConvert

Post by felipe4334 »

XnTriq wrote:AFAIK, adding a drop-shadow effect to text is not supported by nConvert.
[color=green]nconvert.exe -help[/color] wrote:

Code: Select all

-text string      : Add a text
-text_font name size  : Font name and size
-text_color r g b : Text color
-text_back r g b  : Text background color
-text_flag pos    : Position of text
    top-left, top-center, top-right
    center-left, center, center-right
    bottom-left, bottom-center, bottom-right
-text_pos x y     : Position or offset
-text_rotation degrees : Rotation

that explains a lot, thanks
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Text shadow in NConvert

Post by xnview »

NConvert doesn't support text shadow
Pierre.
felipe4334
Posts: 14
Joined: Mon Nov 07, 2016 4:42 pm

Re: Text shadow in NConvert

Post by felipe4334 »

xnview wrote:NConvert doesn't support text shadow
Is there any way of working around it, example multiple layers of text?
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Text shadow in NConvert

Post by cday »

felipe4334 wrote:
xnview wrote:NConvert doesn't support text shadow
Is there any way of working around it, example multiple layers of text?
Possibly by writing the text twice, the second slightly displaced and lighter?? But I think you would be lucky to get a satisfactory result, although you could always try...

Otherwise probably using ImageMagick which supports an amazing number of imaging functions...
felipe4334
Posts: 14
Joined: Mon Nov 07, 2016 4:42 pm

Re: Text shadow in NConvert

Post by felipe4334 »

cday wrote:
felipe4334 wrote:
xnview wrote:NConvert doesn't support text shadow
Is there any way of working around it, example multiple layers of text?
Possibly by writing the text twice, the second slightly displaced and lighter?? But I think you would be lucky to get a satisfactory result, although you could always try...

Otherwise probably using ImageMagick which supports an amazing number of imaging functions...
Thanks ill try it out.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Text shadow in NConvert

Post by cday »

I think with NConvert, if you apply the shadow before the foreground text it might produce the result you want, but the only way to know for sure is to try it...
Post Reply