{"action":"created","issue":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/1110","labels_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1110/labels{/name}","comments_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1110/comments","events_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1110/events","html_url":"https://github.com/Studio-42/elFinder/issues/1110","id":112524680,"number":1110,"title":"imgResize() fixed","user":{"login":"audino731","id":15226724,"avatar_url":"https://avatars.githubusercontent.com/u/15226724?v=3","gravatar_id":"","url":"https://api.github.com/users/audino731","html_url":"https://github.com/audino731","followers_url":"https://api.github.com/users/audino731/followers","following_url":"https://api.github.com/users/audino731/following{/other_user}","gists_url":"https://api.github.com/users/audino731/gists{/gist_id}","starred_url":"https://api.github.com/users/audino731/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audino731/subscriptions","organizations_url":"https://api.github.com/users/audino731/orgs","repos_url":"https://api.github.com/users/audino731/repos","events_url":"https://api.github.com/users/audino731/events{/privacy}","received_events_url":"https://api.github.com/users/audino731/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T07:05:07Z","updated_at":"2015-10-21T13:33:41Z","closed_at":"2015-10-21T13:33:41Z","body":"/php/elFinderVolumeDriver.class.php - line 3475 ~ 3479\r\n\r\norigin\r\n\r\n\t\tlist($size_w, $size_h) = array($width, $height);\r\n\t\t\r\n\t\tif ($keepProportions == true) {\r\n\t\t\r\n\t\t\tlist($orig_w, $orig_h) = array($s[0], $s[1]);\r\n\t\t\r\n\t\t\t/* Resizing by biggest side */\r\n\t\t\tif ($resizeByBiggerSide) {\r\n\t\t\t\tif ($orig_w > $orig_h) {\r\n\t\t\t\t\t$size_h = round($orig_h * $width / $orig_w);\r\n\t\t\t\t\t$size_w = $width;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$size_w = round($orig_w * $height / $orig_h);\r\n\t\t\t\t\t$size_h = $height;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($orig_w > $orig_h) {\r\n\t\t\t\t\t$size_w = round($orig_w * $height / $orig_h);\r\n\t\t\t\t\t$size_h = $height;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$size_h = round($orig_h * $width / $orig_w);\r\n\t\t\t\t\t$size_w = $width;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\nfixed\r\n\r\n\t\tlist($size_w, $size_h) = array($width, $height);\r\n\t\tlist($orig_w, $orig_h) = array($s[0], $s[1]);\r\n\t\t\r\n\t\tif ($keepProportions == true) {\r\n\t\t\r\n\t\t\t/* Resizing by biggest side */\r\n\t\t\tif ($resizeByBiggerSide) {\r\n\t\t\t\tif ($orig_w > $orig_h) {\r\n\t\t\t\t\t$size_h = round($orig_h * $width / $orig_w);\r\n\t\t\t\t\t$size_w = $width;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$size_w = round($orig_w * $height / $orig_h);\r\n\t\t\t\t\t$size_h = $height;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($orig_w > $orig_h) {\r\n\t\t\t\t\t$size_w = round($orig_w * $height / $orig_h);\r\n\t\t\t\t\t$size_h = $height;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$size_h = round($orig_h * $width / $orig_w);\r\n\t\t\t\t\t$size_w = $width;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}"},"comment":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/comments/149897175","html_url":"https://github.com/Studio-42/elFinder/issues/1110#issuecomment-149897175","issue_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1110","id":149897175,"user":{"login":"nao-pon","id":1412630,"avatar_url":"https://avatars.githubusercontent.com/u/1412630?v=3","gravatar_id":"","url":"https://api.github.com/users/nao-pon","html_url":"https://github.com/nao-pon","followers_url":"https://api.github.com/users/nao-pon/followers","following_url":"https://api.github.com/users/nao-pon/following{/other_user}","gists_url":"https://api.github.com/users/nao-pon/gists{/gist_id}","starred_url":"https://api.github.com/users/nao-pon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nao-pon/subscriptions","organizations_url":"https://api.github.com/users/nao-pon/orgs","repos_url":"https://api.github.com/users/nao-pon/repos","events_url":"https://api.github.com/users/nao-pon/events{/privacy}","received_events_url":"https://api.github.com/users/nao-pon/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T13:33:41Z","updated_at":"2015-10-21T13:33:41Z","body":"@audino731 Thanks! :+1: fixed @465ca4fc270941e111c96bc790e9927c87fe755d"}}