Background remover
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 45547
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Background remover
Next release will have a background remover plugin, here is some examples
You do not have the required permissions to view the files attached to this post.
Pierre.
-
- Moderator & Librarian
- Posts: 6457
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Background remover
This is great news! Can't wait to give it a try 

-
- Posts: 21
- Joined: Sat Oct 31, 2020 4:58 pm
- Location: Highland, Scotland
Re: Background remover
Brilliant, well done and thank you - if a long time overdue 

-
- Posts: 467
- Joined: Fri Feb 13, 2009 4:37 pm
- Location: Duesseldorf, Germany
Re: Background remover
What a great feature! How does it work? There is no instruction or info about it.
I tried the menu entry 'background remover' but nothing happened.
I tried the menu entry 'background remover' but nothing happened.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.6 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.1
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.6 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.1
-
- Author of XnView
- Posts: 45547
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Background remover
The 'Background remover' is available now. In Tools>Plugins, you can install it.
But there is an issue (i need to search why), the decompressed u2netp.onnx file is not good, please replace with this one https://download.xnview.com/PlugIns/XnV ... _win64.zip
But there is an issue (i need to search why), the decompressed u2netp.onnx file is not good, please replace with this one https://download.xnview.com/PlugIns/XnV ... _win64.zip
Pierre.
-
- Posts: 467
- Joined: Fri Feb 13, 2009 4:37 pm
- Location: Duesseldorf, Germany
Re: Background remover
Thank you! Now it works perfect und very fast.
Unbelievable, the results are very good with different portrait photos.
The background remover has only a problem with white objects or clothing in portrait photos,
but this is a difficult task for every AI program.
---
I sometimes use xnviewmp as a portable program on usb stick.
Is there a chance to copy the plugin/addon files in the xnviewmp folder to use the plugins?
In XnviewMP folder there is a 'addons' folder.
The install version of xnviewmp use a 'addons' folder in the roaming folder of the user directory.
Do you have a hint?



Unbelievable, the results are very good with different portrait photos.
The background remover has only a problem with white objects or clothing in portrait photos,
but this is a difficult task for every AI program.

---
I sometimes use xnviewmp as a portable program on usb stick.
Is there a chance to copy the plugin/addon files in the xnviewmp folder to use the plugins?
In XnviewMP folder there is a 'addons' folder.
The install version of xnviewmp use a 'addons' folder in the roaming folder of the user directory.
Do you have a hint?
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.6 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.1
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.6 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.1
-
- XnThusiast
- Posts: 2221
- Joined: Sat May 09, 2015 9:37 am
Re: Background remover
'Remove Background...'
- this menu item shall be disabled for unsupported formats (audio,video,etc) as app craches
- there shall be no ... in the name, as no dialog is opened
if set to 'Program (XnView)' - AddOns suppose to be created in the app folder
- this menu item shall be disabled for unsupported formats (audio,video,etc) as app craches
- there shall be no ... in the name, as no dialog is opened
guess it depends on 'Folder for other files' setting in Settings>Integration>Pathsmasterjp wrote: Fri Feb 23, 2024 4:20 pm I sometimes use xnviewmp as a portable program on usb stick.
Is there a chance to copy the plugin/addon files in the xnviewmp folder to use the plugins?
In XnviewMP folder there is a 'addons' folder.
The install version of xnviewmp use a 'addons' folder in the roaming folder of the user directory.
Do you have a hint?
if set to 'Program (XnView)' - AddOns suppose to be created in the app folder
-
- Moderator & Librarian
- Posts: 6457
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Background remover
The add-on crashes on grayscale images 

-
- Author of XnView
- Posts: 45547
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Background remover
you can move the AddOns folder in the app foldermasterjp wrote: Fri Feb 23, 2024 4:20 pm Is there a chance to copy the plugin/addon files in the xnviewmp folder to use the plugins?
In XnviewMP folder there is a 'addons' folder.
The install version of xnviewmp use a 'addons' folder in the roaming folder of the user directory.
Do you have a hint?
Pierre.
-
- Moderator & Librarian
- Posts: 6457
- Joined: Sun Sep 25, 2005 3:00 am
- Location: Ref Desk
Re: Background remover
When you go to Tools → PlugIns… → AddOns and hit the Install button for Background Remover, …
Please note that the files for Background Remover go into the AddOns sub-directory of your MP installation.
exiftool.exe and twain32.exe OTOH belong in the existing AddOn sub-directory.
Related:
- a new sub-directory named AddOns is created,
- 4 files are downloaded into this folder,
Code: Select all
\XnViewMP\AddOns\BackgroundRemover.dll \XnViewMP\AddOns\onnxruntime.dll \XnViewMP\AddOns\opencv_world3416.dll \XnViewMP\AddOns\u2netp.onnx
- and a logfile named install.txt is added:
Code: Select all
BackgroundRemover 1.0 BackgroundRemover.dll onnxruntime.dll opencv_world3416.dll u2netp.onnx
Please note that the files for Background Remover go into the AddOns sub-directory of your MP installation.
exiftool.exe and twain32.exe OTOH belong in the existing AddOn sub-directory.
Related:
- XnView Forum
- Wikipedia
- GitHub
-
- XnThusiast
- Posts: 1450
- Joined: Tue Sep 27, 2016 8:18 am
- Location: France
Re: Background remover
It seems that background remover does not work with Win7 .
Even when u2netp.onnx (4468 Ko) is replaced by u2netp.onnx (4468 Ko)
Even when u2netp.onnx (4468 Ko) is replaced by u2netp.onnx (4468 Ko)
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
-
- Posts: 1
- Joined: Mon May 06, 2024 4:37 pm
Install Background remover at Linux.
Linux Mint 21 Vanessa.
XnView MP 1.7.1 64-bit(Linux)-Libformat7.176 ; the latest version.
How can one install this set for linux Mint?
Is this set possible for Windows users only? I have read that some plugins may be converted for linux also.
And I cannot find general installation instruction for XnView plugins. For my version of XnView there is option "Effects" -> Remove background colour.
But when I launch it the window "Background remover" appears with "Please install it by using Tools->Plugins". At Tools menu there isn't Plugins option.
I found at About program-> Plug-in modules, that the directory for plugins is /opt/XnView/Plugins.
I placed the unzipped files from BackRemover_win64.zip at this folder, but it doesn't work for me.
XnView MP 1.7.1 64-bit(Linux)-Libformat7.176 ; the latest version.
How can one install this set for linux Mint?
Is this set possible for Windows users only? I have read that some plugins may be converted for linux also.
And I cannot find general installation instruction for XnView plugins. For my version of XnView there is option "Effects" -> Remove background colour.
But when I launch it the window "Background remover" appears with "Please install it by using Tools->Plugins". At Tools menu there isn't Plugins option.
I found at About program-> Plug-in modules, that the directory for plugins is /opt/XnView/Plugins.
I placed the unzipped files from BackRemover_win64.zip at this folder, but it doesn't work for me.
-
- Posts: 1
- Joined: Mon Jun 24, 2024 11:11 am
Re: Background remover
Hi,I wanted to express my appreciation for the Background Remover plugin. It processes images very quickly and delivers impressive results. I have a large number of images that need background removal, and I'm wondering if it's possible to execute this plugin via a batch file for batch processing.
Could you please provide guidance or any tips on how to use this functionality to handle multiple images at once?
Thank you for your assistance.
Could you please provide guidance or any tips on how to use this functionality to handle multiple images at once?
Thank you for your assistance.
-
- Posts: 2
- Joined: Tue Jun 25, 2024 1:01 pm
Re: Background remover
As the user Sologub wrote above, I am also very interested in this AddOn and I also use Linux Mint and, under "Tools>Plugins...", at least in Linux Mint (or for all versions of XnViewMP?), there is no possibility to install Plugins.
I've tried extracting the files to the /opt/XnView/AddOn/BackRemover_win64/ folder, but even so I don't see the new Plugins installed when I restart XnViewMP, either in "Tools>Plugins..." or in Info, and when I go to "Effects>Background Remover" it asks me to install the Plugin from "Tools>Plugins..." (which as I said above, doesn't give the option to install Plugins).
Can anyone tell me how to do this? Has anyone already experienced something like this and solved it? Or can anyone give me any other suggestions? I'm ready to experiment.
Thanks for reading.
I've tried extracting the files to the /opt/XnView/AddOn/BackRemover_win64/ folder, but even so I don't see the new Plugins installed when I restart XnViewMP, either in "Tools>Plugins..." or in Info, and when I go to "Effects>Background Remover" it asks me to install the Plugin from "Tools>Plugins..." (which as I said above, doesn't give the option to install Plugins).
Can anyone tell me how to do this? Has anyone already experienced something like this and solved it? Or can anyone give me any other suggestions? I'm ready to experiment.
Thanks for reading.