$image->Set(units => 'PixelsPerInch'); $image->Set(depth=>8); $image->Set(density => '300x300'); $image->Set(quality =>'20');