
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

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 .