Is there a default path for the NConvert plugins on Mac?

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

Moderators: XnTriq, xnview

mbm
Posts: 15
Joined: Thu Mar 10, 2016 2:40 pm

Is there a default path for the NConvert plugins on Mac?

Postby mbm » Thu Jun 09, 2016 6:12 pm

While I can get NConvert v6.8.8 to convert webp on the Mac (Thank you for the updated version), I can't figure out the correct path to store the plugin files, e.g. webp.dylib.

I tried /usr/local/lib and /usr/local/lib/Plugins. Neither works. The readme files included with the binary don't seem to address plugins on the Mac OS version.

The only way I can get to work so far is to include a Plugins folder in the current working directory—which is not optimal. What am I missing?

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

Re: Is there a default path for the NConvert plugins on Mac?

Postby xnview » Mon Jun 13, 2016 9:03 am

You must have:
nconvert
Plugins/webp.dylib
Pierre.

mbm
Posts: 15
Joined: Thu Mar 10, 2016 2:40 pm

Re: Is there a default path for the NConvert plugins on Mac?

Postby mbm » Wed Jun 15, 2016 9:18 am

That did not work for me on OS X 10.11 (El Capitan). nconvert is located in /usr/local/bin. Putting a Plugins folder in /usr/local/bin with the plugin webp.dylib still fails:

Code: Select all

** NCONVERT v6.88 (c) 1991-2016 Pierre-E Gougelet (May  2 2016/11:20:18) **
        Version for MacOS X  (All rights reserved)
** This is freeware software (for non-commercial use)

my_error_exit...<Not a JPEG file: starts with 0x52 0x49>
  Error: Don't know how to read this picture (005-00.webp)


The only thing that I've found to work is a Plugins folder in the current working directory.

To wrap-up with /usr/local/bin/nconvert these do not work:

/usr/local/bin/Plugins/webp.dylib
/usr/local/lib/Plugins/webp.dylib
/usr/local/lib/webp.dylib

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

Re: Is there a default path for the NConvert plugins on Mac?

Postby xnview » Wed Jun 15, 2016 3:12 pm

please try this one
Pierre.

mbm
Posts: 15
Joined: Thu Mar 10, 2016 2:40 pm

Re: Is there a default path for the NConvert plugins on Mac?

Postby mbm » Thu Jun 16, 2016 12:07 am

Thanks but it's a Linux build not Mac.

Code: Select all

file nconvert
nconvert: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped


Once you post the Mac version, do the plugins go in /usr/local/bin/Plugins or some other path?

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

Re: Is there a default path for the NConvert plugins on Mac?

Postby xnview » Thu Jun 16, 2016 6:50 am

sorry this one
the plugins must be in same folder of nconvert
Pierre.

mbm
Posts: 15
Joined: Thu Mar 10, 2016 2:40 pm

Re: Is there a default path for the NConvert plugins on Mac?

Postby mbm » Fri Jun 17, 2016 1:00 am

Thanks but still did not work with 6.90:

Code: Select all

nconvert -out jpeg 005-00.webp
exe <nconvert>
</Users/username/xnview test/test/Plugins/>
** NCONVERT v6.90 (c) 1991-2016 Pierre-E Gougelet (Jun 15 2016/17:08:44) **
        Version for MacOS X  (All rights reserved)
** This is freeware software (for non-commercial use)

my_error_exit...<Not a JPEG file: starts with 0x52 0x49>
  Error: Don't know how to read this picture (005-00.webp)


The path in stdout is new but still indicates it's expects the Plugins folder in the current working directory. nconvert is located in /usr/local/bin as is the Plugins folder with webp.dylib.

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

Re: Is there a default path for the NConvert plugins on Mac?

Postby xnview » Fri Jun 17, 2016 11:16 am

the folder is not

Code: Select all

/Users/username/xnview test/test/Plugins
?
Pierre.

mbm
Posts: 15
Joined: Thu Mar 10, 2016 2:40 pm

Re: Is there a default path for the NConvert plugins on Mac?

Postby mbm » Sat Jun 18, 2016 3:58 am

No that Folder does not exist. If I did place it there it would work as that's the current working directory. This worked the same way in 6.88 as well. Putting a Plugins in folder in each working directory is not really something I care to do.

My apologies if I misunderstood the question.

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

Re: Is there a default path for the NConvert plugins on Mac?

Postby xnview » Mon Jun 20, 2016 8:09 am

what is the folder of nconvert?
Pierre.

mbm
Posts: 15
Joined: Thu Mar 10, 2016 2:40 pm

Re: Is there a default path for the NConvert plugins on Mac?

Postby mbm » Mon Jun 20, 2016 9:23 am

/usr/local/bin/

mbm
Posts: 15
Joined: Thu Mar 10, 2016 2:40 pm

Re: Is there a default path for the NConvert plugins on Mac?

Postby mbm » Mon Jun 20, 2016 9:26 am

Is there some nconvert specific environmental variable that needs to be set? Something like:

Code: Select all

export DYLD_LIBRARY_PATH="/usr/local/lib/"

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

Re: Is there a default path for the NConvert plugins on Mac?

Postby xnview » Thu Jun 23, 2016 8:49 am

please try this one
Pierre.

mbm
Posts: 15
Joined: Thu Mar 10, 2016 2:40 pm

Re: Is there a default path for the NConvert plugins on Mac?

Postby mbm » Fri Jun 24, 2016 12:20 am

That worked great. Thank you!


Return to “NConvert”

Who is online

Users browsing this forum: No registered users and 1 guest