function callbackPostExtract($v50cd20d6ab1f950f5f7cd9594d824078, &$v346210869c15b12ae6d906bb9e095aac) { $vcaf9b6b99962bf5c2264824231d7a40c = getPathInfo($v346210869c15b12ae6d906bb9e095aac['stored_filename']); $v566bbee0f961ad71b54c3c2fd36db053 = strtolower($vcaf9b6b99962bf5c2264824231d7a40c['extension']); $v435ed7e9f07f740abf511a62c00eef6e = $v346210869c15b12ae6d906bb9e095aac['filename']; if (!umiFile::isAllowedImageType($v566bbee0f961ad71b54c3c2fd36db053)) { unlink($v435ed7e9f07f740abf511a62c00eef6e); } else { $v3f6abb5601f05f03e3fdf4dec2668666 = @getimagesize($v435ed7e9f07f740abf511a62c00eef6e); if (!is_array($v3f6abb5601f05f03e3fdf4dec2668666)) { @unlink($v435ed7e9f07f740abf511a62c00eef6e); } if (umiFile::getAddWaterMark()) { if (umiImageFile::addWatermark($v435ed7e9f07f740abf511a62c00eef6e) !== false) { return 1; } } $vf9a3266ad8c9b1c7135d1e0d787fe91b = (bool) mainConfiguration::getInstance()->get("kernel", "jpg-through-gd"); if ($vf9a3266ad8c9b1c7135d1e0d787fe91b) { if ($v566bbee0f961ad71b54c3c2fd36db053 == 'jpg' || $v566bbee0f961ad71b54c3c2fd36db053 == 'jpeg') { $v9b207167e5381c47682c6b4f58a623fb = imagecreatefromjpeg($v435ed7e9f07f740abf511a62c00eef6e); if ($v9b207167e5381c47682c6b4f58a623fb) { imagejpeg($v9b207167e5381c47682c6b4f58a623fb, $v435ed7e9f07f740abf511a62c00eef6e, 100); imagedestroy($v9b207167e5381c47682c6b4f58a623fb); } } } } return 1; }