Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XnViewMP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 175

PostPosted: Sat Jan 19, 2019 11:49 pm    Post subject: XnViewMP Reply with quote

XnViewMP is an image viewer and browser, including light tools like crop, color correction, etc...
Imo, one of the best image viewer actually available (I've tried others, gthumb being the closest to xnviewmp)

The binary provided by the website requires pulseaudio :(
Fortunately, the c2p-overlay offers the possibility to install it (without pulse :wink: ), but the owner of that overlay is thinking about closing it (or not, he's not sure)

So my question is, is there a good soul owning an overlay that would agree to host XnViewMP ebuilds ?

Thanks for reading !
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Sun Jan 20, 2019 12:22 am    Post subject: Reply with quote

You could create a local overlay on your machine and add the ebuild to it.

See: https://wiki.gentoo.org/wiki/Custom_repository or https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/CustomTree#Defining_a_custom_repository


Last edited by mike155 on Sun Jan 20, 2019 12:24 am; edited 1 time in total
Back to top
View user's profile Send private message
ianmoone
n00b
n00b


Joined: 03 Jun 2018
Posts: 6
Location: /dev/null

PostPosted: Sun Jan 20, 2019 12:23 am    Post subject: Re: XnViewMP Reply with quote

krumpf wrote:
So my question is, is there a good soul owning an overlay that would agree to host XnViewMP ebuilds ?


Just host in your own local overlay.

TL;DR:
Code:
REPO_NAME="localrepo"
REPO_PATH="/path/to/local/repository"

mkdir -p "${REPO_PATH}"/{metadata,profiles}
echo "${REPO_NAME}" > "${REPO_PATH}"/profiles/repo_name
printf "masters = gentoo\nauto-sync = false\n" > "${REPO_PATH}"/metadata/layout.conf
# Register your local overlay in /etc/portage/repos.conf:
printf "[${REPO_NAME}]\nlocation = ${REPO_PATH}\n" > /etc/portage/repos.conf/${REPO_NAME}.conf


Now copy the desired directories (category/package-name) into your ${REPO_PATH}.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Sun Jan 20, 2019 12:45 am    Post subject: Reply with quote

The current version of (closed-source) XnView MP is 0.92 (18 Sep 2018), so the ebuilds in that overlay are already out of date.

If browsing .HEIC images from Apple devices is important to you, the current version of XnView MP Linux 0.92 does not have an HEIC plugin. To date, only the Windows release of XnView MP has an HEIC plugin (see the XnView Forum thread https://newsgroup.xnview.com/viewtopic.php?p=146764#p146764).

There is a work-around for Linux users who desperately need an image viewer for .HEIC files produced by Apple devices (it does not work for the example .HEIC files downloaded from the Nokia HEIF Web site, though), which is to use WINE to install the Windows release of the multi-platform closed-source application XnView MP. Here is what I did to install XnView MP Windows 0.92 64-bits, all in the same terminal window/session:

Code:
$ cd
$ export WINEPREFIX=~/.wine-xnviewmp
$ winecfg # Select Windows 10.
$ winetricks # Select the default wineprefix (~/.wine-xnviewmp) then install allfonts.
$ cd ~/Downloads
$ wget https://download.xnview.com/XnViewMP-win-x64.exe
$ wget http://www.xnview.com/download/plugins/heif_x64.zip
$ unzip heif_x64.zip
Archive:  heif_x64.zip
  inflating: heif.txt               
  inflating: opencv_core330.dll     
  inflating: opencv_ffmpeg330_64.dll 
  inflating: opencv_imgcodecs330.dll 
  inflating: opencv_imgproc330.dll   
  inflating: opencv_videoio330.dll   
  inflating: msvcp120.dll           
  inflating: msvcr120.dll           
  inflating: heif.dll
$ cp ~/Downloads/XnViewMP-win-x64.exe ~/.wine-xnviewmp/drive_c/
$ cd ~/.wine-xnviewmp/drive_c/
$ wine XnViewMP-win-x64.exe
$ cp ~/Downloads/*.dll ~/.wine-xnviewmp/drive_c/Program\ Files/XnViewMP/plugins/
$ cp ~/Downloads/*.dll ~/.wine-xnviewmp/drive_c/windows/system32/
$ winecfg # Select the Libraries tab and add the DLL overrides listed below.

Use winecfg to add the following DLL overrides for WINEPREFIX ~/.wine-xnviewmp:
msvcp120 (native, builtin)
msvcr120 (native, builtin)
opencv_core330 (native, builtin)
opencv_ffmpeg330_64 (native, builtin)
opencv_imgcodecs330 (native, builtin)
opencv_imgproc330 (native, builtin)
opencv_videoio330 (native, builtin)

To launch XnView MP Windows from the command line in Linux:

Code:
$ cd
$ env WINEPREFIX=~/.wine-xnviewmp wine C:\\Program\ Files\\XnViewMP\\xnviewmp.exe

Alternatively, you can launch XnView MP from the GUI either by selecting ‘Wine’ > ‘Programs’ > ‘XnViewMP’ > ‘XnViewMP’ from the Desktop Environment’s application launcher menu, or by double-clicking on the XnViewMP icon on the Desktop, created when you installed XnView MP Windows via WINE.

As I mentioned above, XnView MP Windows cannot display the example HEIC files downloaded from the Nokia HEIF Web site, only HEIC files created by Apple devices. ( Links to the Nokia example files are listed in the XnView Forum post https://newsgroup.xnview.com/viewtopic.php?p=129428#p129428 )
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 175

PostPosted: Sun Jan 20, 2019 10:10 am    Post subject: Reply with quote

Wow, lots of answers overnight

@mike155 @ianmoone
I was thinking about a local repo, but I'll admit it, I was a bit lazy to do it :oops:
Guess I'll go for that solution once I'll come back from hibernation :P

@Fitzcarraldo
I'm not using Apple devices, the most exotic image format I got is DICOM, from my MRI
I once tried xnviewmp with wine, but it crashed miserably when creating thumbnails on a large folder :s

Thanks folks for answers :)
Back to top
View user's profile Send private message
hagen_
n00b
n00b


Joined: 25 May 2005
Posts: 10

PostPosted: Sun May 03, 2020 9:47 pm    Post subject: Reply with quote

mike155 wrote:
You could create a local overlay on your machine and add the ebuild to it.

See: https://wiki.gentoo.org/wiki/Custom_repository or https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/CustomTree#Defining_a_custom_repository



Many thanks for this thread, helped me a lot .
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum