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

Resizing Images

ozonetrooper

Android Expert
Feb 21, 2016
1,075
1,666
124
South of Texas
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>
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones