I think you need to figure out how many pixels per inch, and then use the method setImageScale(float $scale);
For example:
$this->setImageScale(24.5);
Then your code should work after setting the scale:
$this->Image($tmp, 0, 0, 4, 6, 'gif', '', '', true);
source
share