Automatic Blogger Image Resize Script - Latest Andi AM V.3 Script
ooredoo

Tuesday, March 12, 2024

Home » Blogger , Blogger Tips » Automatic Blogger Image Resize Script - Latest Andi AM V.3 Script

Automatic Blogger Image Resize Script - Latest Andi AM V.3 Script

How to Blogger - In the previous article, we discussed the Automatic Blogger Post Photo Resize Script - Andi AM V.2 Script . Well... In this article we are still discussing automatic image resizing in blog posts, updating the Andi AM V.3 script.

The benefits of a blog photo/image resizing script are actually quite a lot, including:
  1. Automatically resizes all post images.
  2. The image quality will not change, aka it will not be blurry.
  3. Very suitable for SEO Friendly blogs
  4. Very good for photo gallery blogs.
  5. Blog post images are organized and pleasing to the eye.
Just go ahead bro, please copy the script below right above the code </head>

<!-- Script Andi AM - Resize Img Src Thumb V.3 -->
<script language='javascript' src='https://ajax. googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>//<![CDATA[
$(document) .ready(function() {
$('div[class="post-body entry-content"]').find('img').each(function(n,image){
$(image).attr({ src : $(image).attr('src').replace(/s\B\d{3,4}/,'s0')});
$(image).attr('width', 480 );
$(image).attr('height',null);
});
});
//]]>
</script>
<!-- Script Andi AM - Resize Img Src Thumb V.3 -->

Please set the desired image width according to the red code above 480 = (480px)
Next, save your template and try to see the result, if it doesn't work then there are several possibilities including:
  1. JQuery clashes, the solution is to delete the red script above that you added earlier, then save your blog template. 
  2. If it still doesn't work, then delete all the scripts that you added earlier, then read this article ( Automatic Blogger Post Photo Resize Script - Andi AM V.2 Script ) It's possible that your blog template doesn't match the script above.
  3. If it still doesn't work, wow... That means your blog template is quite complicated, maybe because the owner has clamped it using special CSS. For the solution, please wait for our next update article (Script Resize Image Andi AM V.4) look at the related post, maybe it has already been published.
  4. Good luck.
Greetings - Andi AM

Related Posts :