extract transparency fix from #8050

fixes https://github.com/owncloud/core/issues/7148

@jancborchardt this probably fixes https://github.com/owncloud/core/issues/10039
@PVince81 probably fixes https://github.com/owncloud/core/issues/8130