Author Topic: Blending destination canvas cannot be in indexed mode.  (Read 389 times)

Offline Segator

  • Imaging User
  • *
  • Posts: 2
    • View Profile
Blending destination canvas cannot be in indexed mode.
« on: 28 November 2018, 22:36:54 »
Hi Imaging 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 LCL Imager 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.

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 371
    • View Profile
    • Galfar's Homepage
Re: Blending destination canvas cannot be in indexed mode.
« Reply #1 on: 1 December 2018, 00:54:20 »
Thanks for the report.
I've just pushed the fix to the repository.
Nice "unusual" files to add to my test image suite :)

Offline Segator

  • Imaging User
  • *
  • Posts: 2
    • View Profile
Re: Blending destination canvas cannot be in indexed mode.
« Reply #2 on: 1 December 2018, 16:46:40 »
Thanks you a lot for the fix i attach other of this type of image.