Henry_2

GetContainerAttribute ( sourceField ; "transparency" ) incorrectly returns 0 for 8 bit png's with transparency

Discussion created by Henry_2 on Apr 3, 2017
Latest reply on Apr 3, 2017 by Henry_2

Product and version FileMaker Pro Advanced 15.0.1

OS and version Windows Server 2012 (perhaps any system)

Browser and version N/A

Hardware VMWare (perhaps any hardware)

Description

GetContainerAttribute ( sourceField ; "transparency" ) incorrectly returns 0 for 8 bit png's with transparency

Since 8 bit png's with transparency are used heavily (online) because of their size benefits.

 

How to replicate

  1. Get or create any 8 bit .png with transparency. If you want to easily create one:
    Upload any .png file (one with transparency) to TinyPNG.com:
    TinyPNG – Compress PNG images while preserving transparency
    The site returns an 8 bit .png version, with transparency
  2. Upload to a Filemaker container and GetContainerAttribute ( sourceField ; "transparency" )
  3. check the result, it will be 0 while it does have transparency

 

Workaround

Unfortunately I know of no workaround checking transparency for 8 bit png's in Filemaker

 

Hope it helps and hopefully Filemaker wants to improve to also recognize the many 8 bit png's we have with transparency.

Outcomes