Replies: 4 comments 7 replies
-
|
This is something what was missing in PictView plugin - support for newer image file types. I added an experimental support for https://github.com/lejcik/salamander/tree/plugin-pictview-support-for-heif-and-webp The code structure of the plugin is very complex. Firstly I tried out to modify it to add support for other image file types, but when I changed something, another issue appeared on the other end. This is kind of "please don't touch this code!" legacy and monolithic code... This is not a complaint, my codes looked similar 20 years ago 😀 Plugin uses pict-view library, and I found out that plugin can paste an image from clipboard. Then I found a way how the library can read a bitmap from memory. So, if I open an arbitrary image file and convert it to a bitmap, the pict-view library will accept it. My implementation replaces API of the library. With minimal code modification I was able to add new image loaders. This approach has some limitations - only raster images are supported (no vector images such as svg), only primary image can be load (no animated images), no save-as in the new image filetypes (only existing ones), etc. But I think for the most cases this is ok. Here are a few issues I have to resolve:
Any feedback is welcome. Enjoy 😉 |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/KRtkovo-eu-AI/salamander/tree/plugins_darkmode/src/plugins/webview2renderviewer WebView2 Render Viewer .NET Supported File Types
All matches are case-insensitive. Files larger than 32 MB are rejected to match the plug-in limits. |
Beta Was this translation helpful? Give feedback.
-
|
So there is also PictView with backend switched to WIC (Windows Imaging Component): https://github.com/user-attachments/files/22840524/plugin_5.0_pictview_2.2_80c1a42.zip With WebP codec installed, it's working out of the box. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
WebP is a raster graphics file format developed by Google intended as a replacement for JPEG, PNG, and GIF file formats. It supports both lossy and lossless compression,[8] as well as animation and alpha transparency.
Google announced the WebP format in September 2010, and released the first stable version of its supporting library in April 2018.
Add
*.webpto the default PictViewer listSupport WEBP in the Pictview Plugin
Add
*svgto the default PictViewer listSupport SVG in the Pictview Plugin
Beta Was this translation helpful? Give feedback.
All reactions