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, helmut, xnview

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

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

Post by mbm »

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: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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?

Post by mbm »

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: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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?

Post by mbm »

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: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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?

Post by mbm »

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: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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?

Post by mbm »

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: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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?

Post by mbm »

/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?

Post by mbm »

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: 43357
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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?

Post by mbm »

That worked great. Thank you!
Post Reply