Reply to Re: Bug/Feature when image_convert is enabled

Re: Bug/Feature when image_convert is enabled new!
by colin, 17 years, 9 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

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important