|
@@ 978-984 (lines=7) @@
|
| 975 |
|
if (strtolower($this->f) == 'jpg') { |
| 976 |
|
$this->f = 'jpeg'; |
| 977 |
|
} |
| 978 |
|
if (phpthumb_functions::CaseInsensitiveInArray($this->config_output_format, $AvailableImageOutputFormats)) { |
| 979 |
|
// set output format to config default if that format is available |
| 980 |
|
$this->DebugMessage('$this->thumbnailFormat set to $this->config_output_format "'.strtolower($this->config_output_format).'"', __FILE__, __LINE__); |
| 981 |
|
$this->thumbnailFormat = strtolower($this->config_output_format); |
| 982 |
|
} elseif ($this->config_output_format) { |
| 983 |
|
$this->DebugMessage('$this->thumbnailFormat staying as "'.$this->thumbnailFormat.'" because $this->config_output_format ('.strtolower($this->config_output_format).') is not in $AvailableImageOutputFormats', __FILE__, __LINE__); |
| 984 |
|
} |
| 985 |
|
if ($this->f && (phpthumb_functions::CaseInsensitiveInArray($this->f, $AvailableImageOutputFormats))) { |
| 986 |
|
// override output format if $this->f is set and that format is available |
| 987 |
|
$this->DebugMessage('$this->thumbnailFormat set to $this->f "'.strtolower($this->f).'"', __FILE__, __LINE__); |
|
@@ 985-991 (lines=7) @@
|
| 982 |
|
} elseif ($this->config_output_format) { |
| 983 |
|
$this->DebugMessage('$this->thumbnailFormat staying as "'.$this->thumbnailFormat.'" because $this->config_output_format ('.strtolower($this->config_output_format).') is not in $AvailableImageOutputFormats', __FILE__, __LINE__); |
| 984 |
|
} |
| 985 |
|
if ($this->f && (phpthumb_functions::CaseInsensitiveInArray($this->f, $AvailableImageOutputFormats))) { |
| 986 |
|
// override output format if $this->f is set and that format is available |
| 987 |
|
$this->DebugMessage('$this->thumbnailFormat set to $this->f "'.strtolower($this->f).'"', __FILE__, __LINE__); |
| 988 |
|
$this->thumbnailFormat = strtolower($this->f); |
| 989 |
|
} elseif ($this->f) { |
| 990 |
|
$this->DebugMessage('$this->thumbnailFormat staying as "'.$this->thumbnailFormat.'" because $this->f ('.strtolower($this->f).') is not in $AvailableImageOutputFormats', __FILE__, __LINE__); |
| 991 |
|
} |
| 992 |
|
|
| 993 |
|
// for JPEG images, quality 1 (worst) to 99 (best) |
| 994 |
|
// quality < 25 is nasty, with not much size savings - not recommended |