• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Resizing Images

ozonetrooper

Android Expert
Not sure what this board offers for tools, but a couple of boards I Admin at, we have a tool resizer in the reply toolbox, which allows members to resize attachments and embedded images to a more site friendly size.

It also allows staff the same if the membership is not toolbar savvy.

This is what the tool looks like, the size value can be changed to whatever image size wanted, 500 pixels is the default used for this particular board setting, default is changed in the script if a different size is want for default.

[resize=500]View attachment 3378[/resize]


And this is what you add through the ACP/attachment manager :

<span style="width:500px" name="resize"> <a href="http://www.crusaderhaven.com/forums/attachment.php?attachmentid=3378" title="">Attachment 3378</a> </span> <script type="text/javascript"> <!-- function resize(event) { var image = is_ie ? event.srcElement : event.target ; if(image.tagName=='IMG'){ if(image.parentNode.getAttribute('name')=='resize'){ if(image.style.width!=image.parentNode.style.width){ image.style.width = image.parentNode.style.width }}} } if (document.addEventListener) { document.addEventListener("load", resize, true); } else if (document.attachEvent) { document.attachEvent("onload", resize); } //--> </script>
 
As a Administrator, I am diligent in keeping things orderly, errant bandwidth due to oversized images equates to more money spent for services, anytime I can save the owners money, I try to do so.
 
Back
Top Bottom