imazen/imageflow-dotnet

[Question] Composing multiple images

jakenuts opened this issue · 4 comments

Is overlaying multiple images possible, and if so what would be the recommended way of achieving that? I gave multiple watermark calls a try and it did overlay them but the intermediate overlay lost it's transparency. I know this is a bit far afield for the library so "not today buddy" is a good answer.

Thanks!

Here is an app that demonstrates what I was seeing. It loads a "canvas" and then overlays three transparent color-grid pngs and saves the result to another png file. If the canvas is jpg, the watermarks all retain their transparency. If the canvas is a png, the first watermark is drawn without transparency. After running you can see the different outputs in the images folder.

https://github.com/jakenuts/SharedCode/tree/main/ComposeImages

overlaid-on-jpg
overlaid-on-png

Thanks!

James

This has been fixed in 0.7.22. You can switch to the Imageflow.AllPlatforms package or replace your Imageflow.NativeRuntime.* dependencies.

Will do! Thanks so much!