mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
Do not create thumbnail if thumbnail would've the same size as the original image. (Bug #30725)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9462 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a7be268aa6
commit
87f1ef1e91
2 changed files with 2 additions and 1 deletions
|
@ -141,6 +141,7 @@
|
|||
<li>[Fix] Messenger now also able to use a custom language path. (Bug #36545)</li>
|
||||
<li>[Fix] PM Export uses ISO 8601 date now. (Bug #32645)</li>
|
||||
<li>[Fix] Apply append_sid() to newest/latest post links in viewforum/search and UCP main module. (Bug #26815)</li>
|
||||
<li>[Fix] Do not create thumbnail if thumbnail would've the same size as the original image. (Bug #30725)</li>
|
||||
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
|
||||
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>
|
||||
<li>[Change] Add link to user profile in the MCP for user notes and warn user.</li>
|
||||
|
|
|
@ -614,7 +614,7 @@ function create_thumbnail($source, $destination, $mimetype)
|
|||
list($new_width, $new_height) = get_img_size_format($width, $height);
|
||||
|
||||
// Do not create a thumbnail if the resulting width/height is bigger than the original one
|
||||
if ($new_width > $width && $new_height > $height)
|
||||
if ($new_width >= $width && $new_height >= $height)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue