[fix] Image rotation could result in a white screen. [#337]

This commit is contained in:
Solomon Peachy 2008-09-07 09:26:23 -04:00
parent 3dfe477bcd
commit e680781c0b
2 changed files with 3 additions and 4 deletions

View File

@ -13,6 +13,7 @@ For further information about Photo Organizer, see its web site at:
[fix] Label/Film/Camera deletion wasn't working.
[fix] Localize an overlooked string. [#375]
[misc] Unified the permission tests in the export code.
[fix] Rotating images could lead to a blank page. [#377]
2.36 (August 17, 2008)

View File

@ -2457,15 +2457,13 @@ function po_get_image_size($file) {
if ($parts[0] == "Image Height") $height = $parts[1];
if ($parts[0] == "Rows") $height = $parts[1];
if ($parts[0] == "Columns") $width = $parts[1];
print "<!-- XXX $parts[0] : $parts[1] -- $width $height -->\n";
#print "<!-- XXX $parts[0] : $parts[1] -- $width $height -->\n";
}
pclose($handle);
} else {
print "<!-- it broke.. -->\n";
#print "<!-- it broke.. -->\n";
}
print "<!-- it really broke.. -->\n";
if (!$width || !$height)
return getimagesize($file);