projects
/
embedvideo
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5a97438
)
Removed hardcoded thumbnailSize accidentally left in from debug run
author
Alan Jack Pippin
<ajp@pippin.(none)>
Thu, 30 Aug 2007 15:17:45 +0000
(09:17 -0600)
committer
Alan J. Pippin
<ajp@pippins.net>
Thu, 30 Aug 2007 15:17:45 +0000
(09:17 -0600)
ItemAddEmbedVideo.inc
patch
|
blob
|
history
diff --git
a/ItemAddEmbedVideo.inc
b/ItemAddEmbedVideo.inc
index f7ab0132964224ab232c984a6c6abc1ddc9325ba..81b5951486c1d97f4002c382bfdcbd0c8eef924e 100644
(file)
--- a/
ItemAddEmbedVideo.inc
+++ b/
ItemAddEmbedVideo.inc
@@
-618,7
+618,7
@@
class ItemAddEmbedVideo extends ItemAddPlugin {
}
}
}
}
- // Obtain
in
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
// 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. ";
$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 <br>";
$thumbnailHeight=$thumbnailSize;
$thumbnailWidth=round($thumbnailHeight * $ratio);
$debugString.="Resizing thumbnail image to $thumbnailWidth x $thumbnailHeight: $tmpFile -> $newTmpFile <br>";