BP64: Viewnior alternatives that open webp files?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

BP64: Viewnior alternatives that open webp files?

Post 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!

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
mikeslr
Posts: 2955
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 910 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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].

Last edited by mikeslr on Sat Feb 25, 2023 12:59 am, edited 2 times in total.
User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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 831 times

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post by vtpup »

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

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

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
norgo
Posts: 283
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 6 times
Been thanked: 111 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post by norgo »

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

User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post by vtpup »

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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

Attachments
vwebp-viewer.jpg
vwebp-viewer.jpg (324.25 KiB) Viewed 812 times
User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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!

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
norgo
Posts: 283
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 6 times
Been thanked: 111 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post by norgo »

@vtpup
both links doesn't work

User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post by vtpup »

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

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
norgo
Posts: 283
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 6 times
Been thanked: 111 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post by norgo »

403 Forbidden
nothing to click ;-)

okay I will try the other ones

can't detect image examples for testing , sorry.

User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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.

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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.

User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
mikewalsh
Moderator
Posts: 6149
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 788 times
Been thanked: 1976 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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. ;)

User avatar
norgo
Posts: 283
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 6 times
Been thanked: 111 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post by norgo »

@vtpup
good news webp-pixbuf-loader is working

Screenshot.jpg
Screenshot.jpg (26.51 KiB) Viewed 898 times
Screenshot(1).jpg
Screenshot(1).jpg (25.66 KiB) Viewed 898 times
Burunduk
Posts: 250
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 126 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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.

User avatar
spiritwild
Posts: 85
Joined: Wed Jul 22, 2020 1:34 am
Been thanked: 27 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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

User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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.

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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.

Attachments
webp-viewnior.jpg
webp-viewnior.jpg (320.64 KiB) Viewed 1051 times
User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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.....

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
norgo
Posts: 283
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 6 times
Been thanked: 111 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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
Burunduk
Posts: 250
Joined: Thu Jun 16, 2022 6:16 pm
Has thanked: 7 times
Been thanked: 126 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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.

User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post by vtpup »

Will the Fossa version run on Bionic64?

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: BP64: Viewnior alternatives that open webp files?

Post 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.

Attachments
webp-pixbuf-loader-0.0.7-x86_64-bionic.pet
(18.44 KiB) Downloaded 42 times
User avatar
vtpup
Posts: 735
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 163 times
Contact:

Re: BP64: Viewnior alternatives that open webp files?

Post 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.)

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

Post Reply

Return to “Users”