• Hi everyone

    Could somebody help with this code I have? This code below resize’s the image and stores it /uploads/et_temp to save on page loading time.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    How do I apply that to this code?

    <div id="authorblock3" class="post2">
    <?php $Thumbnail_Two = get_post_meta($post->ID, 'Thumbnail_Two', TRUE); ?>
    <?php if($Thumbnail_Two) { ?><img src="<?php echo $Thumbnail_Two; ?>" width="65" height="55" alt="<?php the_title_attribute(); ?>" /><?php } ?>
    				</div>

    If anybody knows how to minify the top code so it is similar to the bottom code,but obviously doing the same function that would be great.

Viewing 1 replies (of 1 total)
  • I don’t know php but I wonder why you don’t use paint program or microsoft office to save the file in .jpg format. This will reduce the size of your photos and pictures to a minimum.

    If your picture is, say, 3000×4000 pixels and you only want to display it as a 300×400 pixel picture on your website, use microsoft office or paint or any other image software to shrink the picture to 300×400 pixels and then save in .jpg format. You could also try saving in .png format and see if picture is smaller. .png is good for bold patterns .jpg is very good at compressing photos.

    Then upload to the required subdirectory – filezilla or cPanel…

Viewing 1 replies (of 1 total)
  • The topic ‘Help with image size please’ is closed to new replies.