cosmigo / pmotion-purebasic

Cosmigo Pro Motion NG plugins interfaces in PureBasic
Other
4 stars 0 forks source link

Images With Alpha Layer Exported Twice #4

Open tajmone opened 4 years ago

tajmone commented 4 years ago

Currently, whenever an image containing an Alpha layer is exported, the plugin is invoked twice (for image.ext and image.alpha.ext). This occurs regardless of whether isWriteTrueColorSupported() returns true or false.

This seems connected to PM NG native behaviour when saving to file formats that don't support alpha channels, for which PM created and additional .alpha.<ext> file to store the Alpha layer in order to reconstruct it when loading that image again.

This is either a bug or an undocumented feature — the former suggests that PM should be handling creation of the extra file.

For more details, see also:


tajmone commented 3 years ago

It's a bug! See Jan's reply in tajmone/pmotion-assets#7.

I probably should add a warning about his in the boilerplate sources, as well as try to understand better how this bug is affecting plug-ins (and which functionality).