WebP support in PictView

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
User avatar
mdruiter
Posts: 263
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

WebP support in PictView

Post by mdruiter »

PictView currently does not understand WebP. IrfanView does. Google uses this format more and more and it looks technically superior to JPEG and such. What about supporting it natively in PictView? Google offers a library for that, so it shouldn't be too hard.
User avatar
AD7
Posts: 601
Joined: 28 Jan 2006, 16:21

Re: WebP support in PictView

Post by AD7 »

Latest XnView has a plugin.
And perhaps IrfanView. Both are free and *fast*.
treb
Posts: 11
Joined: 21 Oct 2015, 10:14

Re: WebP support in PictView

Post by treb »

+1
User avatar
AD7
Posts: 601
Joined: 28 Jan 2006, 16:21

Re: WebP support in PictView

Post by AD7 »

Mám na SVG a WebP nastavený XnView.
Fungujú tam totiž rovnako ako v AS klávesy Bsp - predošlý a Spc - ďalší. :D
emmayashri
Posts: 4
Joined: 15 Apr 2024, 13:18
Location: India

Re: WebP support in PictView

Post by emmayashri »

WebP is becoming increasingly popular and is considered technically superior to JPEG, adding native support would increase PictView capabilities and compatibility. Integrating the library should be relatively straightforward given Google resources and also it has so many features like jpeg compressor, supported with different formats too.
vilo
Posts: 21
Joined: 05 Feb 2019, 07:30
Location: Slovakia

Re: WebP support in PictView

Post by vilo »

I "played" a bit with the PictView plugin, and I've added support for viewing .heif and .webp files. This is an experimental feature, it's more a hack than a regular implementation, but it works with some limitations. For more details, see the pull request and discussion:

https://github.com/OpenSalamander/salamander/pull/61
https://github.com/OpenSalamander/salam ... ussions/36

Any feedback is welcome. Enjoy 😉
User avatar
AD7
Posts: 601
Joined: 28 Jan 2006, 16:21

Re: WebP support in PictView

Post by AD7 »

vilo wrote: 28 Jan 2025, 13:47 I "played" a bit with the PictView plugin, and I've added support for viewing .heif and .webp files. This is an experimental feature, it's more a hack than a regular implementation, but it works with some limitations. For more details, see the pull request and discussion:

https://github.com/OpenSalamander/salamander/pull/61
https://github.com/OpenSalamander/salam ... ussions/36

Any feedback is welcome. Enjoy 😉
So how to add it to AS 4.0? There are some DLLs or even some visualstusio DLLs?
Thanks.
vilo
Posts: 21
Joined: 05 Feb 2019, 07:30
Location: Slovakia

Re: WebP support in PictView

Post by vilo »

Go to the link above to the discussion and see my long comment there, but basically this sentence explains it:

- load libheif.dll and libwebp.dll dynamically (currently they have to be copied to the directory where salamand.exe is)

I plan to fix this issue, but for now if you copy the related dlls there, plugin should be loaded successfully.
User avatar
AD7
Posts: 601
Joined: 28 Jan 2006, 16:21

Re: WebP support in PictView

Post by AD7 »

vilo wrote: 28 Jan 2025, 17:29 ...
- load libheif.dll and libwebp.dll dynamically (currently they have to be copied to the directory where salamand.exe is)
...
And those 2 dll's can be downloaded at...?
vilo
Posts: 21
Joined: 05 Feb 2019, 07:30
Location: Slovakia

Re: WebP support in PictView

Post by vilo »

Firstly, you have to have vcpkg utility, when you integrate it with Visual Studio, it will build everyting for you. It's also good to define OPENSAL_BUILD_DIR environment variable.

Code: Select all

c:\projects> git clone https://github.com/Microsoft/vcpkg.git
c:\projects> cd vcpkg
c:\projects\vcpkg> bootstrap-vcpkg.bat
c:\projects\vcpkg> vcpkg integrate install
Now you can open Salamander solution in Visual Studio, you need to compile just the pictview project, and all the needed dlls you can find under the OPENSAL_BUILD_DIR, you have to copy these dlls:

Code: Select all

heif.dll
libde265.dll
libsharpyuv.dll
libwebp.dll
libx265.dll
When I will have some spare time, I'll try to set up automated builds on github, and you could then download binaries, so you will not have to compile it yourself.
User avatar
AD7
Posts: 601
Joined: 28 Jan 2006, 16:21

Re: WebP support in PictView

Post by AD7 »

Thanks.

So there are nowhere compiled DLLs? :?
vilo
Posts: 21
Joined: 05 Feb 2019, 07:30
Location: Slovakia

Re: WebP support in PictView

Post by vilo »

Ok, you can download the libraries from here: https://drive.google.com/file/d/1GjZwKJ ... xCBt2/view

Did you manage to compile the plugin?
User avatar
AD7
Posts: 601
Joined: 28 Jan 2006, 16:21

Re: WebP support in PictView

Post by AD7 »

vilo wrote: 29 Jan 2025, 17:12 ...
Did you manage to compile the plugin?
No. My PC is old.
vilo
Posts: 21
Joined: 05 Feb 2019, 07:30
Location: Slovakia

Re: WebP support in PictView

Post by vilo »

ok, then try to download it from here: https://uschovna.cz/zasilka/RG2D5WT7IRNEC89S-XS5
Post Reply