public function purgeExif() { $this->parseInput(); if ($this->inputDim[2] !== IMAGETYPE_JPEG) { return; } exec('jhead -autorot -purejpg -q ' . escapeshellarg($this->inputPath)); $this->parseInput(true); }