Text shadow in NConvert

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

Moderators: XnTriq, xnview

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

Text shadow in NConvert

Postby felipe4334 » Mon Nov 07, 2016 10:23 pm

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: 1468
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Text shadow in NConvert

Postby cday » Mon Nov 07, 2016 10:38 pm

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

Postby felipe4334 » Mon Nov 07, 2016 10:50 pm

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: 1468
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Text shadow in NConvert

Postby cday » Mon Nov 07, 2016 11:04 pm

O.K. something not right there:


XnConvert.jpg
XnConvert output


NConvert.jpg
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

Postby felipe4334 » Tue Nov 08, 2016 12:04 am

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

Postby felipe4334 » Tue Nov 08, 2016 4:00 am

Can anybody help

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

Re: Text shadow in NConvert

Postby XnTriq » Tue Nov 08, 2016 4:00 am

AFAIK, adding a drop-shadow effect to text is not supported by nConvert.

nconvert.exe -help 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

Postby felipe4334 » Tue Nov 08, 2016 5:35 am

XnTriq wrote:AFAIK, adding a drop-shadow effect to text is not supported by nConvert.

nconvert.exe -help 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: 27560
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Text shadow in NConvert

Postby xnview » Tue Nov 08, 2016 8:45 am

NConvert doesn't support text shadow
Pierre.

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

Re: Text shadow in NConvert

Postby felipe4334 » Tue Nov 08, 2016 11:04 pm

xnview wrote:NConvert doesn't support text shadow

Is there any way of working around it, example multiple layers of text?

cday
XnThusiast
Posts: 1468
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Text shadow in NConvert

Postby cday » Tue Nov 08, 2016 11:21 pm

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

Postby felipe4334 » Tue Nov 08, 2016 11:50 pm

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: 1468
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Text shadow in NConvert

Postby cday » Wed Nov 09, 2016 7:43 am

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


Return to “NConvert”

Who is online

Users browsing this forum: No registered users and 1 guest