OK, I take no credit for this, its from tbdev, but works well on ttv2.05.

The image resize we were using caused the torrent details pages to load so slow it was no longer usable, so I looked for an alternative. I searched tt forums and didnt find anything, heres the code we used:
Download ncode_imageresizer.js and put in the directory on your server.
In header.php add before </head>
In your themes.css file before </style> Add
NcodeImageResizer.MAXWIDTH = 600; <<--- change this to the max width you want.
functions.php Find
Replace
Find
Replace
Image:
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4161"]ncode_imageresizer.js[/url]

The image resize we were using caused the torrent details pages to load so slow it was no longer usable, so I looked for an alternative. I searched tt forums and didnt find anything, heres the code we used:
Download ncode_imageresizer.js and put in the directory on your server.
In header.php add before </head>
<script type="text/javascript" src="ncode_imageresizer.js"></script><script type="text/javascript">
<!--
NcodeImageResizer.MODE = 'newwindow';
NcodeImageResizer.MAXWIDTH = 600;
NcodeImageResizer.MAXHEIGHT = 0;
NcodeImageResizer.Msg1 = 'Click this bar to view the full image.';
NcodeImageResizer.Msg2 = 'This image has been resized. Click this bar to view the full image.';
NcodeImageResizer.Msg3 = 'This image has been resized. Click this bar to view the full image.';
NcodeImageResizer.Msg4 = 'Click this bar to view the small image.';
//-->
</script>
In your themes.css file before </style> Add
<!----- Image resizer css ---->table.ncode_imageresizer_warning {
background: #FFFFE1;
color: #000000;
border: 1px solid #CCC;
cursor: pointer;
}
table.ncode_imageresizer_warning td {
font-size: 12px;
color: red;
vertical-align: middle;
text-decoration: bold;
}
table.ncode_imageresizer_warning td.td1 {
padding: 5px;
}
table.ncode_imageresizer_warning td.td1 {
padding: 2px;
}
<!---- end resizer --->
NcodeImageResizer.MAXWIDTH = 600; <<--- change this to the max width you want.
functions.php Find
$s = preg_replace("/\[img\](http:\/\/[^\s'\"<>]+(\.gif|\.jpg|\.png|\.bmp|\.jpeg))\[\/img\]/i", "<img border=0 src=\"\\1\">", $s);Replace
$s = preg_replace("/\[img\](http:\/\/[^\s'\"<>]+(\.gif|\.jpg|\.png|\.bmp|\.jpeg))\[\/img\]/i", "<img border=0 src=\"\\1\" alt=\"\"onload=\"NcodeImageResizer.createOn(this);\">", $s);Find
$s = preg_replace("/\[img=(http:\/\/[^\s'\"<>]+(\.gif|\.jpg|\.png|\.bmp|\.jpeg))\]/i", "<img border=0 src=\"\\1\">", $s);Replace
$s = preg_replace("/\[img=(http:\/\/[^\s'\"<>]+(\.gif|\.jpg|\.png|\.bmp|\.jpeg))\]/i", "<img border=0 src=\"\\1\" alt=\"\"onload=\"NcodeImageResizer.createOn(this);\">", $s);
Image:
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4161"]ncode_imageresizer.js[/url]
