Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Image Resizer
Image Resizer
0
Comments
----
You could try it and see if it messes anything up?
Also, is there any way to get this working with Attachments and Inline Images?
Why would you need this working with Attachments/InlineImages? InlineImages already has an option to limit the width of an image (I'll admit it doesn't have height, which could be nice...) and the ability to have the resized image clickable for a full version.
It adds 1 Notification bar for each oversized image to the first resized image and misses to resize all the follow-up images.
Might have to look for a solution yourselves, as it looks like (s)he's busy doing other things...
[code]
<?php
/*
Extension Name: Image Resizer
Extension Url: http://lussumo.com/addons/
Description: Resizes all images that exceed a defined width/height
Version: 0.1
Author: markezz
Author Url: http://www.lankagui.de/
*/
$Context->SetDefinition('ImageResizerWarningSmall', 'Click here to enlarge image.');
$Context->SetDefinition('ImageResizerWarningFilesize', 'Image size has been reduced. Click here to view the image with its original size of %1$sx%2$s.');
$Context->SetDefinition('ImageResizerWarningNoFilesize', 'Image size has been reduced. Click here to view the image with its original size of %1$sx%2$s.');
$Context->SetDefinition('ImageResizerWarningFullsize', 'Click here to shrink image.');
if( in_array( $Context->SelfUrl, array("post.php", "comments.php", ) ) )
{
$Head->AddStyleSheet('extensions/ImageResizer/style.css');
$Head->AddScript('extensions/ImageResizer/resize.js');
$Head->AddString('
// <![CDATA[
ImageResizer.MODE = "_scale";
ImageResizer.AREA_ID = "Comments";
ImageResizer.MAXWIDTH = 200;
ImageResizer.MAXHEIGHT = 0;
ImageResizer.WARNING_SMALL = "'.$Context->GetDefinition('ImageResizerWarningSmall').'";
ImageResizer.WARNING_FILESIZE = "'.$Context->GetDefinition('ImageResizerWarningFilesize').'";
ImageResizer.WARNING_NOFILESIZE = "'.$Context->GetDefinition('ImageResizerWarningNoFilesize').'";
ImageResizer.WARNING_FULLSIZE = "'.$Context->GetDefinition('ImageResizerWarningFullsize').'";
// ]]>
');
}
elseif ( $Context->SelfUrl == 'extension.php' && ForceIncomingString('PostBackAction', '') == 'Blog' )
{
$Head->AddStyleSheet('extensions/ImageResizer/style.css');
$Head->AddScript('extensions/ImageResizer/resize.js');
$Head->AddString('
// <![CDATA[
ImageResizer.MODE = "_scale";
ImageResizer.AREA_ID = "BlogList";
ImageResizer.MAXWIDTH = 200;
ImageResizer.MAXHEIGHT = 0;
ImageResizer.WARNING_SMALL = "'.$Context->GetDefinition('ImageResizerWarningSmall').'";
ImageResizer.WARNING_FILESIZE = "'.$Context->GetDefinition('ImageResizerWarningFilesize').'";
ImageResizer.WARNING_NOFILESIZE = "'.$Context->GetDefinition('ImageResizerWarningNoFilesize').'";
ImageResizer.WARNING_FULLSIZE = "'.$Context->GetDefinition('ImageResizerWarningFullsize').'";
// ]]>
');
}
?>
[/code]
take in this http://www.40k.ru/vanilla/uploads/AL+IR_extensions.zip