Docsity

Image Conversion Algorithms: Handling Transparency, Exams of Multimedia Applications

Partial preview of the text

Download Image Conversion Algorithms: Handling Transparency and more Exams Multimedia Applications in PDF only on Docsity!

An ‘algorithm’ is: encode_png(png_stream, decode_jpeg(jpeg_stream)) Note that converting from png to JPEG is slightly more complicated if the png source uses the transparent color since JPEG doesn’t have a way to represent the transparent color and if you don’t specify an alternate value for the transparent color it may be mapped to black or some other color which is probably not you want .