- /* mode 6 images which are not fully opaque or fully transparent
- will be stored as definejpeg3 */
- if(header.mode == 6 && transparent != header.width*header.height
- && opaque != header.width*header.height) {
-
- fprintf(stderr, "Image has transparency information. Storing as DefineBitsJpeg3 Tag (jpeg+alpha)\n");
-
- // we always use quality 100, since png2swf is expected to
- // use more or less lossless compression
-
- swf_SetJPEGBits3(t, header.width, header.height, (RGBA*)data2, 100);
- t->id = ST_DEFINEBITSJPEG3;
- }
- else
-#endif
- {
- swf_SetLosslessBits(t, header.width, header.height, data2, BMF_32BIT);
- }
+ swf_SetLosslessBits(t, header.width, header.height, data2, BMF_32BIT);