Wordpress SEO Expert

Improve your Google ranking with Peter Mahoney, 20+ years SEO & Wordpress experience

  • SEO Overhaul
  • SEO Campaign
  • WP Support
  • Blog
    • SEO Emails
  • Praise

Reminder, JPGs are for photos

April 11, 2020 by Peter Wordpress SEO Expert

Please remember when saving images to upload to the web – photos should be saved as JPGs.

PNG is another popular format for the web but it works best on images like logos, with large blocks of the same colour.

Anything like a photograph that is made up of 1000s of different colours will always be best as a JPG – and usually about one 10th the filesize.

Of the clients that ask me to speed up their WordPress websites (in addition to their SEO work) perhaps the most improvement comes from simply converting their photos they’ve saved as PNGs into JPGs. If a site has several photos that are saved as the wrong file type it’s easy to shave several megabytes off the page size, and therefore speed up the site’s loading time.

Part of the problem is a lot of software for editing images will default to PNG when you use their “Save for web” function. Which is fine for icons and logos, charts and even text saved as an image.

So many websites these days focus on really high quality imagery (understandably – people love photographs!) but don’t know that not all file types are created equally, they all have different purposes and use cases and those wonderful product shots should always be saved as JPGs.

It’s good to get in the habit of doing this right away – after an image is uploaded into WordPress there’s no simply way to convert it to JPG and change all the references in the code to use the different filename. So try to get it right from the outset!

Filed Under: Content, Hints & Tips, Website Speed, Wordpress Tagged With: images, jpeg, jpg, photos, png, speed

You would not believe how important it is…

March 31, 2013 by Peter Wordpress SEO Expert

You would not believe how important it is to optimise your images. I just saved 77.5% of one site’s total image filesize, without blinking.

Filed Under: Nerd-stream, Uncategorized Tagged With: filesize, images

I just saved 10% off the total page…

March 11, 2013 by Peter Wordpress SEO Expert

I just saved 10% off the total page size of my personal homepage at http://petermahoney.net – guess how?

I just optimised the background image a bit. That’s all. Honestly, it pays to check these things once in a while!

Filed Under: Nerd-stream, Uncategorized Tagged With: images, jpgs, load, optimise, page size, page speed, Peter Mahoney, petermahoney.net

Show all images in a directory using PHP

March 1, 2013 by Peter Wordpress SEO Expert

This is a sweet script. It displays all the files in a particular directory. In this case it’s a folder full of user uploads, so it makes keeping an eye on things a breeze.

[sourcecode language=”php”]‘;
}
?>[/sourcecode]

You can of course easily modify it to show only JPGs or other image types (if you’re pulling content from a directory of mixed file types) or to edit the echo so it returns images that link to user profiles etc.

But this is it’s most basic form.

Filed Under: Nerd-stream, Uncategorized Tagged With: directory, display, folder, glob(), images, PHP

Get FREE Wordpress SEO tips!

I send regular newsletters with WordPress SEO expert-level tips. Sign up to get them, along with my FREE e-book “Ongoing SEO Success”.

Did I mention they’re free!

Subscribe for free

Praise

I have over 2,500 5-star feedback reviews (and I’ve never received less than the full five.)

Here’s just one example, from Mike who runs Costello Entertainments:

Migration, Hosting, SEO and Speed Work on our new website all completed quickly and efficiently and Peter was most helpful in fixing an issue with a Popover on the site as well. If you’re thinking about asking Peter to do a job for you or hesitating, JUST DO IT! – He knows programming and the internet inside out, he’ll get the job done for you professionally, with a smile. I wish I could call a plumber or a tradesman to do the jobs I can’t do myself with the same level of confidence.
Read a lot more.

Recent Blogs

  • Outreach for backlinks – how to get quality links that Google will love
    I’m thinking of redirecting my Virtual Assistant work to other tasks as the generic LinkedIn work I ...
  • (Small) Pricing changes for 2025
    When COVID first hit, like a lot of people around the world I wanted to help my clients as much as possible ...
  • My site has errors – timeouts – and my host isn’t helping me
    Hi Peter, My site has been reporting errors (timeouts) which have become more regular the past week or so. I ...
  • How do we fix 404 errors after a site move or migration?
    Hi Peter, We migrated from Visualsoft to Woocommerce approx. 10 days ago and are experiencing 404 errors. ...

Legal

  • Terms and conditions
  • Privacy policy
  • Disclaimer

Prices are quoted exclusive of VAT unless expressly stated.

Also read

  • Payment information

RSS

Peter Mahoney, WordPress SEO expert blog

Recent Posts

  • Outreach for backlinks – how to get quality links that Google will love
  • (Small) Pricing changes for 2025
  • My site has errors – timeouts – and my host isn’t helping me
  • How do we fix 404 errors after a site move or migration?
  • Why does SEMRush show my ranking change so much?

© Copyright 2025 Wordpress SEO Expert · All Rights Reserved · Site by Peter Mahoney