Recent

Author Topic: New version of BGRABitmap  (Read 171537 times)

Segator

  • Jr. Member
  • **
  • Posts: 53
Re: New version of BGRABitmap
« Reply #540 on: November 08, 2019, 07:38:01 pm »
I think we did it. fredvs did the dynamic loading and I did the search for the library on linux. So basically, on Linux, it uses the installed library libwebp and on Windows and MacOS one need to supply the library. I haven't tested it on MacOS though.

But main thing, it doesn't require to install libwebp-dev, so if I add this to BGRABitmap, people won't have to install this package to compile.

that is great, very good job

circular

  • Hero Member
  • *****
  • Posts: 3022
    • Personal webpage
Re: New version of BGRABitmap
« Reply #541 on: November 08, 2019, 07:41:05 pm »
Quote
On Windows you can display .webp with out external library, check this Double Commander implementation:
That's interesting. I wonder though from which version it is available and the resolution, as it is returned by a thumbnail function?

Quote
but its just to display, you can't save to .webp
Ah indeed, that's a bit limited. Though as a fallback, it could be better than nothing.
Conscience is the debugger of the mind

Segator

  • Jr. Member
  • **
  • Posts: 53
Re: New version of BGRABitmap
« Reply #542 on: November 08, 2019, 07:48:08 pm »
Quote
That's interesting. I wonder though from which version it is available and the resolution, as it is returned by a thumbnail function?
Yes and the resolution you must to set it, can not get it  :( , but maybe with some search in the winapi function ?
Quote
Ah indeed, that's a bit limited. Though as a fallback, it could be better than nothing.
yeap
« Last Edit: November 08, 2019, 08:06:38 pm by Segator »

circular

  • Hero Member
  • *****
  • Posts: 3022
    • Personal webpage
Re: New version of BGRABitmap
« Reply #543 on: November 08, 2019, 08:07:02 pm »
What if you use SIIGBF_BIGGERSIZEOK flag?
Conscience is the debugger of the mind

Segator

  • Jr. Member
  • **
  • Posts: 53
Re: New version of BGRABitmap
« Reply #544 on: November 08, 2019, 08:16:26 pm »
Testing...

circular

  • Hero Member
  • *****
  • Posts: 3022
    • Personal webpage
Re: New version of BGRABitmap
« Reply #545 on: November 09, 2019, 11:59:16 am »
I've added WebP support in BGRABitmap on dev branch. On Windows you need to copy along your app the adequate Dll which is provided in bgrabitmap/libwebp.

Any news about the thumbnail?
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3277
    • Lainz
Re: New version of BGRABitmap
« Reply #546 on: November 09, 2019, 01:54:37 pm »
Hi, I suppose that the thumbnail will work only if the version of Windows supports WebP, on Windows 10 the WebP support has been added with Webp Image Extensions https://www.microsoft.com/en-us/p/webp-image-extensions/9pg2dk419drg?activetab=pivot:overviewtab

I can see WebP images directly in the file explorer.

But what about Windows 7 that is still being used? Seems that for older versions of Windows Google provides a codec
https://techdows.com/2011/04/viewing-webp-images-on-windows.html

So maybe people will need the codec on older Windows to generate that thumbnails...  :)

circular

  • Hero Member
  • *****
  • Posts: 3022
    • Personal webpage
Re: New version of BGRABitmap
« Reply #547 on: November 09, 2019, 02:43:57 pm »
Indeed. It's not guaranteed to be there.
Conscience is the debugger of the mind