Bug/Feature when image_convert is enabled

See all posts See thread Reply

Re: Bug/Feature when image_convert is enabled new!
by colin, 17 years, 2 months ago
You are right, there is a bug. The bug is around line 1950.

To fix it, you can replace the following code:
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") . '
'; }
with:
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") . '
'; }
Thanks for pointing it out. It will be fixed in the next release.Reply