Stuart’s MATLAB Videos

Watch and Learn

Creating a Test to Find Incorrect Size Images

Posted by Stuart McGarrity,

If I find a defect on our website, I first look for other similar defects and then create a test that runs regularly to catch future occurrences. I recently noticed a video thumbnail was not the correct aspect ratio: it was 4:3 instead of 16:9, like the middle one in this list of three:

So here I write a script to find any video thumbnails on our website that are the wrong aspect ratio. Features covered in this code-along style video include:

  • webread
  • table

Follow me (@stuartmcgarrity) if you want to be notified via Twitter when I post.

Play the video in full screen mode for a better viewing experience. 

Add A Comment

Your email address will not be published. Required fields are marked *

What is 5 + 10 ?

Preview: hide