{
Boolean compression = (Boolean)getAttribute(EmbedAttribute.COMPRESSION);
Float quality = (Float)getAttribute(EmbedAttribute.QUALITY);
if ((compression != null && compression == true) || quality != null)
{
transcoder = new JPEGTranscoder(this, workspace);
}
else
{
transcoder = new ImageTranscoder(this, workspace);
}