Recent

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

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
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
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

circular

  • Hero Member
  • *****
  • Posts: 4195
    • 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

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
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 »
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

circular

  • Hero Member
  • *****
  • Posts: 4195
    • 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

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: New version of BGRABitmap
« Reply #544 on: November 08, 2019, 08:16:26 pm »
Testing...
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

circular

  • Hero Member
  • *****
  • Posts: 4195
    • 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: 4460
    • https://lainz.github.io/
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: 4195
    • 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

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: New version of BGRABitmap
« Reply #548 on: February 04, 2020, 09:28:28 am »
New version of BGRABitmap 10.6.5
https://github.com/bgrabitmap/bgrabitmap/releases

Miscellaneous
- Fix compilation for Qt on MacOS
- Fix compilation for NoGUI
- Fix compilation of ellipse functions with range check enabled
- Avoid range error with 1-point polygon
- Update CSS color link

Drawing
- Texture property for BGRACanvas brush
- Fix horizontal text align of typewriter
- Phong and shadow effect with vectorial text effect renderer
- Fix empty text case
- Added IdleBrush
- FloodFill with universal brush
- Handle EmptyPointF in Compute*Spline functions
- Fix transparent case for gradient fill
- Optional alpha parameter for BGRAToStr function

Layered bitmap
- Better handling of layer ids
- Smaller invisible margin for points
- Improve gradient original (geometry, set colors and apply opacity)

Image format
- Support for WebP format (requires adapted libwebp*.dll on Windows, see libwebp folder)
- Added BGRABitDepthIconCursor function to get minimum depth necessary for icon image
- Added multifile and icon Assign function
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: New version of BGRABitmap
« Reply #549 on: March 02, 2020, 07:06:41 pm »
New version of BGRABitmap 10.6.6
https://github.com/bgrabitmap/bgrabitmap/releases

Rendering
- handling complex unicode in TextOutCurved
- optimize draft rendering of gradients (using new BGRAGradientScanner.TBGRABufferedGradient)
- BGRACanvas: added Pen.Mode property (pmNot etc.)

Layered images
- loading/saving progress callback for all layered images (BGRALayers.Unregister/RegisterLoadingHandler, Unregister/RegisterSavingHandler)
- action progress callback (TBGRALayeredBitmap.OnActionProgress/OnActionDone)
- added Mask and Saturation blend op (Mask applies a mask to layers underneath, Saturation applies standard HSL saturation)
- layer editor: IsMovingPoint property
- layer editor: can highlight points (PointHighlighted[] property)

Gif
- fix error when writing Gif with few colors

Utf8
- added DeleteFileUTF8

Geometry
- added TPointF.IsEmpty
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: New version of BGRABitmap
« Reply #550 on: April 01, 2020, 11:57:26 am »
New version BGRABitmap 10.8
https://github.com/bgrabitmap/bgrabitmap/releases

File formats
- optimize writing PNG and LZP format
- fix reading TIFF format (rare predictor case)

Misc
- added TBGRAPixel.EqualsExactly (checks RGB channels even if alpha = 0
- optimize pixel interpolation
- TAffineBox.Center property
- fix line intersection precision (avoid bugs with pen stroker with certain shapes)
- fix ColorFToBGRA function

TBGRAOriginalEditor
- avoid bugs when editor content changes

TBGRALayerGradientOriginal
- fix comparison with alpha = 0
- added Equals and IsOpaque functions

Conscience is the debugger of the mind

fcu

  • Jr. Member
  • **
  • Posts: 89
Re: New version of BGRABitmap
« Reply #551 on: April 01, 2020, 02:59:24 pm »
nice

i've install this version , then i tried to rebuild lazarus with optimized ide profile , then it stoped whith this error message :  bgrawritepng.pas not found .
also note that bgracontrols could not be installed as well .

i am using fpc 3.0.4 & lazarus 2.0.6 , on windows 7 32bits 

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: New version of BGRABitmap
« Reply #552 on: April 01, 2020, 11:13:20 pm »
Thanx for the feedback.

Do you have bgrawritepng.pas in the folder along with the package?
Conscience is the debugger of the mind

fcu

  • Jr. Member
  • **
  • Posts: 89
Re: New version of BGRABitmap
« Reply #553 on: April 02, 2020, 02:34:29 pm »
yes , its there .
btw , did you tried install the latest bgracontrols ?   

i'll try with fresh installation of both lazarus & bgrabitmap , i'll tel you

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: New version of BGRABitmap
« Reply #554 on: April 02, 2020, 09:21:03 pm »
Maybe you just need to do a clean build
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018