From: Alan Jack Pippin Date: Thu, 30 Aug 2007 15:17:45 +0000 (-0600) Subject: Removed hardcoded thumbnailSize accidentally left in from debug run X-Git-Tag: 1_1_1~21 X-Git-Url: http://git.pippins.net/embedvideo/static/images/%7Blink_ppi%7D?a=commitdiff_plain;h=4a4f36d3d395d88a19c33a457ec1daeec54cbeb8;p=embedvideo%2F.git Removed hardcoded thumbnailSize accidentally left in from debug run --- diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index f7ab013..81b5951 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -618,7 +618,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { } } - // Obtainin the width and height of the original thumbnail, finding out it's ratio, + // Obtain the width and height of the original thumbnail, finding out it's ratio, // and using that ratio when determining the width of the video below. // Example: youtube: 130x97 google: 160x120 metacafe: 90x76 yahoo: 100x70 // Set the thumbnailHeight to the current thumbnailSize @@ -626,7 +626,6 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $image_data = @getimagesize($tmpFile); $ratio = $image_data[0] / $image_data[1]; $debugString.="Using ratio from original thumbnail of $ratio. "; - $thumbnailSize=150; $thumbnailHeight=$thumbnailSize; $thumbnailWidth=round($thumbnailHeight * $ratio); $debugString.="Resizing thumbnail image to $thumbnailWidth x $thumbnailHeight: $tmpFile -> $newTmpFile
";