Recent

Author Topic: [Solved] Vampyre Imaging Library "Blending destination canvas error"  (Read 3232 times)

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Hi Lazarus users, first of all thanks to the creator for the great job of Vampyre Imaging Libray.

As the subject say (and i site the 922 line of ImagingCanvases.pas for the raised error create), my problem is with this type of image, specific MNG or APNG (Animated PNG), take the demo LCL Imager include as example project (my project is other but i think if we can fix here, i can fix in my own), so when you try to load specific type of PNG animated this exception show and no image is show, i attach 2 imagen example below.

Test the issue with Lazarus 1.8.4, Lazarus trunk 2.1.0, Linux, Windows, 32 and 64bits.
« Last Edit: December 01, 2018, 04:52:01 pm by Segator »
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

wp

  • Hero Member
  • *****
  • Posts: 11916
I tested your two images in the LCLImager of VampyreImaging and found the crash too. But since the same crash happens with the Delphi version (demo VCLImageBrowser) I am rather sure that this is related to some limitation in Vampyre. i saw that you already reported the error in the author's forum - yes, that's the way to go.

I am attaching a working demo of the FreeImage library. It loads the two images without any problems. (I did not include the freeimage.dll which you must download from their site).

And even the LCL itself is able to load the images correctly: Just add a TImage to a form and load the images via the propery Picture.

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
I tested your two images in the LCLImager of VampyreImaging and found the crash too. But since the same crash happens with the Delphi version (demo VCLImageBrowser) I am rather sure that this is related to some limitation in Vampyre. i saw that you already reported the error in the author's forum - yes, that's the way to go.

I am attaching a working demo of the FreeImage library. It loads the two images without any problems. (I did not include the freeimage.dll which you must download from their site).

And even the LCL itself is able to load the images correctly: Just add a TImage to a form and load the images via the propery Picture.

Yes but i want the animation-convertion-manipulation that Vampyre Imaging Library support, the LCL itself not supported, i keep the FreeImage in "totest list" but i prefer not dll dependency
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

wp

  • Hero Member
  • *****
  • Posts: 11916
Then I wish you good luck with your post in the Vampyre forum.

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Thanks to the responce, the developer of this library fix the issue.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: [Solved] Vampyre Imaging Library "Blending destination canvas error"
« Reply #5 on: December 01, 2018, 07:12:30 pm »
Good!

 

TinyPortal © 2005-2018