Help

PNG transparency lost when uploaded via app

Topic Labels: API
4516 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Ken
5 - Automation Enthusiast
5 - Automation Enthusiast

It may be a feature but just wanted to point this out.
I see the following behavior

  1. uploading a PNG image with transparency through the browser (Safari 9.1 on OS X), the file is uploaded as a PNG with transparency

  2. uploading the same file via the iOS app via the PHOTO icon at top results in the image being converted to JPG automatically, losing the transparency

  3. uploading the same file via the iOS app but using the general “upload files” file picker, the image is uploaded as a PNG file with the transparency intact.

Is this an intended spec?

here’s the file I used

1 Reply 1
creig_lee
4 - Data Explorer
4 - Data Explorer

PNGs create transparency in one of two ways. One of these methods employs the same approach used by GIFs, with a single color defined as transparent, and the other is to set an alpha channel . One of the advantages of PNG single-color transparency is that it doesn’t remove a color from the available palette. However, the alpha channel is a much smoother method, as it is far better at blending colors, and allows you to select different levels of transparency in specific regions. The transparent areas of the PNG will blend and adjust naturally to whatever is behind the image when the background of the page isn’t a solid white or black color.