# Transparency with JPEGs

DevFeed: [Transparency with JPEGs](<https://devfeed.tech/articles/transparency-with-jpegs-15932.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/transparency-with-jpegs>)

Author: Square Engineering

Published: 2013-01-18T17:01:00Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Compression](<https://devfeed.tech/topics/compression.md>), [Image](<https://devfeed.tech/topics/image.md>), [Graphics](<https://devfeed.tech/topics/graphics.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [pixel](<https://devfeed.tech/topics/pixel.md>), [render](<https://devfeed.tech/topics/render.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [color](<https://devfeed.tech/tags/color.md>), [compression](<https://devfeed.tech/tags/compression.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [graphics](<https://devfeed.tech/tags/graphics.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [information](<https://devfeed.tech/tags/information.md>), [jpeg](<https://devfeed.tech/tags/jpeg.md>), [library](<https://devfeed.tech/tags/library.md>), [pixel](<https://devfeed.tech/tags/pixel.md>), [quality](<https://devfeed.tech/tags/quality.md>), [render](<https://devfeed.tech/tags/render.md>)

## AI overview

The article describes a technique for adding transparency to JPEG images by storing color data in one JPEG and transparency data in a separate monochrome alpha-channel image. It explains how to combine the two images during rendering, including an Android implementation, to reduce file size while retaining photographic quality.

## Source excerpt

Combining the compression of JPEGs and the transparency of PNGs for a 90% compression gain.