class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
if ($this->image_convert=='') { $this->file_dst_name = $this->file_dst_name_body . (!empty($this->file_dst_name_ext) ? '.' . $this->file_dst_name_ext : ''); $this->log .= '- ' . _("image operation, keep extension") . ''; } else { $this->file_dst_name = $this->file_dst_name_body . '.' . $this->image_convert; $this->log .= '- ' . _("image operation, change extension for conversion type") . ''; }
if ($this->image_convert=='') { $this->file_dst_name = $this->file_dst_name_body . (!empty($this->file_dst_name_ext) ? '.' . $this->file_dst_name_ext : ''); $this->log .= '- ' . _("image operation, keep extension") . ''; } else { $this->file_dst_name = $this->file_dst_name_body . '.' . $this->image_convert; $this->file_dst_name_ext = $this->image_convert; $this->log .= '- ' . _("image operation, change extension for conversion type") . ''; }
To fix it, you can replace the following code: with: Thanks for pointing it out. It will be fixed in the next release.