Page 1 of 1

BP64: Viewnior alternatives that open webp files?

Posted: Fri Feb 24, 2023 10:42 pm
by vtpup

Unfortunately the viewnior (default image viewer) that ships with BP64 cannot open webp files.

Is there an updated version .pet, or alternative viewer that can?

Thanks!


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 12:41 am
by mikeslr

Are you sure Viewnior won't open it? Mine does and I don't recall doing anything special. Maybe I just established an association which --taking only a couple minutes-- I forgot doing.

Try this: file browse to a picture ending with .webp. Right-Click it and see if the pop-up menu offers viewnior. That might work. If not, Left-click "Set Run Action". In the GUI which opens, below the phrase "Enter Shell Command" mine has this entry:

defaultimageviewer "$1"

Viewnior was set as the default image viewer using Menu>Setup>Default Application Chooser.

The version of Viewnior I have in Bionicpup64 is 1.6. Puppy Package Manager offers that version patched. If the above didn't solve the problem, install the patched version. Then repeat the step above as necessary.

[Currently, I also have gthumb installed, and --while I now use gimp-portable-- I once had gimp installed via Quickpet. Uninstalling just that gimp left some libraries. Both have plugins for webp files. So it is possible that those installations provided the plugin Viewnior needs. Hopefully NOT. They are much larger than viewnior and figuring out what files Viewnior would need in their absence might be a chore].


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 12:52 am
by vtpup

Hi Mike, thanks!

Nope it had been associated before as defaultimageviewer. I changed that after I couldn't open webp files. However just now I opened a test webp and did an open with viewnior, and no joy. It is version 1.6. see below. I'll look for the patched version.

viewnior16-error-webp.png
viewnior16-error-webp.png (191.24 KiB) Viewed 828 times

Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 12:57 am
by vtpup

Patched version looks like it's already installed.....?

Viewnior-patched-installer-msg.png
Viewnior-patched-installer-msg.png (76.64 KiB) Viewed 824 times

Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 1:11 am
by norgo

@vtpup
could you create an archive with a working and a not working webp image inside.
So we could do some tests.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 1:21 am
by vtpup

Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 1:29 am
by OscarTalks

If you just want a viewer, this is vwebp which is a viewer utility which comes with the libwebp source.
Seen here in my remastered Wheezy Pup displaying a webp image file


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 1:58 am
by vtpup

Thanks Oscartalks. Does it work as a viewer for all image types like Viewnior?

I can open local webp files in mtpaint and Seamonkey (I can't open attachment webp's in Seamonkey, but that's another issue discussed elsewhere).

This particular request is for a viewer like viewnior that opens webps as well as other image formats to be used as the BP64 default image viewer.

Thanks!


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 1:59 am
by norgo

@vtpup
both links doesn't work


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 2:14 am
by vtpup

Hi norgo, thanks, Did you click "Download now" to download the files?


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 2:16 am
by vtpup

Some info about Viewnior and webp:

https://github.com/hellosiyan/Viewnior/issues/99

Apparently it needs the non-standard "WebP GDK Pixbuf Loader" (webp-pixbuf-loader) to open webp images.

https://github.com/aruiz/webp-pixbuf-loader


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 2:19 am
by norgo

403 Forbidden
nothing to click ;-)

okay I will try the other ones

can't detect image examples for testing , sorry.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 2:29 am
by vtpup

Well I can just attach them here, really.

But I think that it probably has nothing to do with a file problem. Viewnior is stated by its author not to work with webp files because, as mikeslr said awhile back, it edpends on gdk-pixbuf under the hood, which does not support WebP.

It looks like there is an add-on for gdk, mentioned in my last post that will add non-standard gdk file support, including webp.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 2:34 am
by OscarTalks

I'm afraid vwebp is a small viewer only for webp files so will not open other formats.
What you can do (as I have done on my system) is have all the other image formats set to open with "defaultimageviewer", but the left click MIME association in ROX is set to open .webp files with vwebp viewer. This does the job if all you want to do is see it when you click on it. I also have right-click on .webp files in ROX offering me mtPaint or netsurf browser to edit or view the webp image file. I don't think viewnior can be compiled to support webp, not sure about other viewers. Mochi was pointing out that his MMview supports it, but that seems to do lots of other things too so not sure what the experience is like for using it as a simple image viewer.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 2:39 am
by vtpup

Oscar, thanks, I had already done that with mtpaint, but not very convenient.

But what do you think of post about:

https://github.com/aruiz/webp-pixbuf-loader

apparently this will add webp to viewnior


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 3:34 am
by mikewalsh

@vtpup :-

I'm not certain if I mentioned it before, but for .webp support I've always found gThumb to be the answer. This is available directly thru the PPM for any of the 'buntu-based Puppies - definitely for Xenialpup, which is where I am currently - and I'm pretty certain it's been installed in my own BP64.

AFAIK it works with most other formats, too.....certainly with .jpg, .png and .gif (the three most common formats in general use, I believe).

Mike. ;)


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 3:41 am
by norgo

@vtpup
good news webp-pixbuf-loader is working

Screenshot.jpg
Screenshot.jpg (26.51 KiB) Viewed 895 times
Screenshot(1).jpg
Screenshot(1).jpg (25.66 KiB) Viewed 895 times

Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 6:14 am
by Burunduk
norgo wrote: Sat Feb 25, 2023 3:41 am

good news webp-pixbuf-loader is working

Did you compile that lib? What's the version? I've tried to compile 0.2.0 on Fossapup64-9.5 - no warnings but it segfaults. Version 0.0.7 works well though.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 1:05 pm
by spiritwild

FEH will view them. It should be in the package manager. Its a command line viewer but I have it set as the default for webp files


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 2:47 pm
by vtpup

Thank you @MikeW, mikeslr also mentioned gthumb back at the start of the thread, so on your recommendation I loaded it and tried it out. It is large (92 mb) but it does also have a lot of features that Viewnior does not. The BP64 version does indeed open webp images. I'm not sure yet whether I like the fact that it always shows thumbnails, logical as that is for a program with that name! I'll have to use it some to see if I want it as my default image viewer. But it does look good, so far.

@norgo, great news, but how does one add it simply, or can a patched viewnior pet include it? If Viewnior is the standard CE Ubu puppy image viewer, it would be helpful if webp functionality were to be included. Hopefully the size is relatively small. But thanks very much for making it work, and I'd certainly like to try it out!

@spiritwild That's good to know but as mentioned earlier I really need a default image viewer that handles all common image types, rather than piecing it out to various single function filetype viewers. A default image viewer should offer consistent functions across all types (next image, rotate, slideshow, zoom, delete, etc.) which is not possible with a collection of one filetype viewers. But thank you for the suggestion, and maybe someone else is looking for what you've suggested.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 4:45 pm
by OscarTalks

Hello vtpup
It would be quite a simple case of installing a .pet of this little library which is an extra loader for gdk-pixbuf. Viewnior uses gdk-pixbuf to display the images so it is not a case of patching viewnior.

Thanks to norgo for confirming that it works.

The developer does seem to be tinkering around with it over the last few days with versions 0.1.x and 0.2.0 which looks like a bit of a fundamental rewrite/rethink, so it might be worth hanging on a bit and keeping an eye to see if he does more updates.

I tried it in my Stretch Pup and 0.2.0 did give an error in compiling.
As Burunduk reported, version 0.0.7 compiles and works OK though.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 5:15 pm
by vtpup

Thank you Oscar! That's great. No problem with a wait to see if the author straightens out the current version. I have plenty of workarounds now for viewing a local webp file. But eventually it would be good to have this as a .pet for viewnior.

I wonder also, if Gimp would benefit from it? I use Gimp 2.8 -- didn't like 2.10, so sticking with 2.8 version. But that version does not handle webp, Maybe this gdk pixbuf .pet will help several older programs.....


Re: BP64: Viewnior alternatives that open webp files?

Posted: Sat Feb 25, 2023 7:00 pm
by norgo

@vtpup

Fossapup64 9.5

webp-pixbuf-loader-0.0.7-1-x86_64.pet
(26.79 KiB) Downloaded 56 times

[ DEPS: libwebpdemux2 ]
important ! install libwebpdemux2 at first !

--------------------------------------------------------------------------------------------------------

Slackware64 15.0 basing Distros

webp-pixbuf-loader-0.2.0-x86_64.pet
(23.04 KiB) Downloaded 48 times

Re: BP64: Viewnior alternatives that open webp files?

Posted: Sun Feb 26, 2023 10:50 am
by Burunduk
OscarTalks wrote: Sat Feb 25, 2023 4:45 pm

The developer does seem to be tinkering around with it over the last few days with versions 0.1.x and 0.2.0 which looks like a bit of a fundamental rewrite/rethink, so it might be worth hanging on a bit and keeping an eye to see if he does more updates.

It seems to be related to https://github.com/aruiz/webp-pixbuf-loader/issues/67
Version 0.2.0 is OK and will run in jammy.

norgo wrote: Sat Feb 25, 2023 7:00 pm

[ DEPS: libwebpdemux2 ]
important ! install libwebpdemux2 at first !

libwebpdemux2 is the only dep missing in Fossapup64-9.5. With it included and the libpixbufloader-webp.so stripped the pet can be even smaller.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Mon Feb 27, 2023 2:15 am
by vtpup

Will the Fossa version run on Bionic64?


Re: BP64: Viewnior alternatives that open webp files?

Posted: Wed Mar 01, 2023 9:33 pm
by OscarTalks
vtpup wrote: Mon Feb 27, 2023 2:15 am

Will the Fossa version run on Bionic64?

I'm not sure if it will. No-one seems to have reported either way (EDIT - I think it does work if you install libwebpdemux via PPM as indicated)
I didn't have a frugal of Bionic64 to hand the other day, but I dug one out and had a go at compiling. As previously mentioned, the version 0.2.0 builds, but segfaults when you try to use it. I made a package of version 0.0.7 in Bionic64 with libwebpdemux included. You can give it a test run for now if you wish. It is easy to uninstall and upgrade if a later working version is released.


Re: BP64: Viewnior alternatives that open webp files?

Posted: Thu Mar 02, 2023 12:15 am
by vtpup

Yes, Oscar your .pet does work in BP64! :thumbup2: :thumbup2:

Thank you for going to the trouble to create a frugal, compile and add the additional dependency! I appreciate it very much.

I'm sorry I didn't reply sooner, but home life requirements meant I wasn't able to check back until today.

Great, Viewnior works with webp!

(ps I found gthumb nice and full featured but navigation was not as simple or speedy as Viewnior for the everyday tasks I need a viewer for, so I took it out of Default Applications and replaced it with Viewnior again.)