a gas compressor is a mechanical device that increases the pressure of a gas by reducing its volume. compression of a gas naturally increases its temperature. when the gas is air, the machine is called an air compressor.