

Moderators: helmut, XnTriq, xnview
Do you have XJp2.dll in the Plugins folder?*Dark Dragon* wrote:Great! But where I can find this plug-in? I've searched with Google before creating this thread and to be sure I have tried again with different keywords - didn't find anything. I would really appreciate if you point me in the right direction to where I can find this plug-in.
I have Xjp2.so (with small "j") in my Plugins folder (I'm using Linux). But how do I use this plug-in? XnViewMP does not recognize any .jp2 files as images. For example, if I go to any folder with .jp2 images (or .JP2) with setting View->Filter By->All I get "blank" icons (same that are used for all unknown formats) for all .jp2 files, and XnViewMP refuses to open them if I double-click on any of .jp2. If I set View->Filter By->Images XnViewMP hides all .jp2 files (only shows images in other formats). In other words, XnViewMP does not think that .jp2 is an image format: in Help->About->Formats there are only "JPEG / JFIF" and "JPEG 8BIM header (Mac)" but there are no JPEG 2000 or JP2. I even tried to add path to Plugins folder to LD_LIBRARY_PATH in xnview.sh but it didn't change anything. Any idea what's wrong?xnview wrote:Do you have XJp2.dll in the Plugins folder?
Code: Select all
[Paths]
Plugins = plugins
Code: Select all
% dirname="`pwd`"
% export LD_LIBRARY_PATH="$dirname"/lib
% export QT_PLUGIN_PATH="$dirname"/lib
% strace ./xnview /mnt/sdd2/Books/scan-small.JP2 |& grep -i 'qt.conf' | sort | uniq
open("/var/pkgs/xnview/XnViewMP-032/qt.conf", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 5
stat64("/var/pkgs/xnview/XnViewMP-032/qt.conf", {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
Code: Select all
export QT_PLUGIN_PATH="$dirname"/Plugins
Code: Select all
export QT_PLUGIN_PATH="$dirname"/lib
Code: Select all
% strace ./xnview /mnt/sdd2/Books/scan-small.jp2 |& grep Plugins
open("/var/pkgs/xnview/XnViewMP-032/Plugins/IlmImf.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/pkgs/xnview/XnViewMP-032/Plugins/rwz_sdk.so", O_RDONLY) = 10
open("/var/pkgs/xnview/XnViewMP-032/Plugins/webp.so", O_RDONLY) = -1 ENOENT (No such file or directory)
Not true. JPEG 2000 works for me out of the box almost everywhere. ImageMagick supports it out of the box, Gwenview also supports it (that's default image viewer in KDE), okular and many other programs. Only programs where JPEG 2000 does not work out of the box for me are browsers and GIMP but fortunatelly there are plug-ins that add this support. May be some day popular browsers will support it without additional plug-in but I really do not see how this is relevant, especially for personal file collection.obelisk wrote:wierd thing is what 12yrs after jp2, still almost NOTHING supports it out of box. ... But w/o browser support etc, I wouldn't consider using it.
Then your tests were wrong. For me difference is extreme. Some images look very blurry in JPEG format even with 100% quality (yes, JPEG is so broken that even 100% quality is very far from acceptable quality for some images containing a lot of high-frequency details). However with JP2 format such images look almost perfect in 85%-90% quality. For such images JP2 files are many times smaller than JPEG and have much better quality - quality that is imposable to achieve even in JPEG of 100% quality. Without JP2 I would have to use something like PNG and waste unimaginable amount of disk space because I have a lot of high-resolution images that are not possible to save in JPEG format without ruining them (and even worse, with JPEG I would have to waste time choosing optimal "quality" setting for every image before I can save it; JP2 have very predictable and intuitive quality loss in 20%-100% range but JPEG can lose a lot of quality even at 100% "quality" and that's hard to predict: some images look good in JPEG of average "quality" and some are ruined by JPEG of 100% "quality"). Even for images like gray scan of BW book JP2 wins: at quality level of 20%-80% JP2 tends to lose only (or mostly) low-contrast background noise and leaves letters and pictures very sharp, and with some experience of using JP2 you can easily know optimal quality setting for a book you scanning. But JPEG adds a lot of artifacts and blurs everything especially at low quality setting because it "thinks" that low-contrast high-frequency noise is important. These shortcomings of JPEG format are the reason why JP2 was created.what's the point of it? From my tests, it's a tiny bit better than jpg at same filesize.
Ok, there is a problem on linux*Dark Dragon* wrote:I have Xjp2.so (with small "j") in my Plugins folder (I'm using Linux). But how do I use this plug-in?xnview wrote:Do you have XJp2.dll in the Plugins folder?