Category: Articles

Image Exceeded Maximum Allowable Filesize

Image Exceeded Maximum Allowable Filesize

If you see a placeholder image stating that “The referenced image exceeded the maximum allowable filesize”, such as shown in the example below, then you have a raw image on your website that is too large to be automatically optimized.

Maximum Allowable Filesize for Automatic Image Optimization

The maximum filesize for Automatic Image Optimization is:

  • Basic Image Optimization (Pegasaas Accelerator Standard): 5MB
  • Advanced Image Optimization (Pegasaas Accelerator Pro): 10MB

If you have images that are larger than the allowable file size, then you will need to resize the image down to something more appropriate for web images.  We recommend that images not exceed 1280×1024 in dimensions, unless used for a “Hero Slider”.

You can resize your images using the WordPress Media manager.  Select the image in the Media panel, then from the right hand properties panel select the “edit more details” details.  Below the image on the “Edit More Details” page, there will be an “Edit Image” button.  Click that button and specify new image dimensions in the “Sale Image” sidebar panel, to the right of the image.  Click the “Scale” button.  Finally, click the “Update” button in the far right panel.

Once you have updated your image, you will need to “Purge” your image cache — you can do this from the top “Accelerator” menu bar icon.

How to whitelist Pegasaas if you are running Incapsula

How to whitelist Pegasaas if you are running Incapsula

If you are running Incapsula with your website, you will need to whitelist the Pegasaas IP address in order to take advantage of many of the Pegasaas Accelerator features.  To whitelist the Pegasaas IP address, follow these steps:

  1. Log in to your Incapsula control panel 
  2. Select your site from the list provided
    Select Your Site
  3. Select the “Settings” menu option
    Select Settings
  4. Click the “Security” button
    Click Security Button
  5. Scroll down to the “Whitelist Specific Sources” section
    Scroll down to Whitelist Specific Sources section
  6. Add the following IP address to the input field:
    Add IP Address
  7. Click the “Add” button
    Click the Add button
  8. Scroll up to the top of the page and click “Save”
    How to Whitelist Pegasaas if you are running Incapsula

At this point, it should take no more than 10 minutes for Incapsula to allow our services to evaluate your pages.

Google PageSpeed indicates that Pegasaas optimized images should be resized

Google PageSpeed indicates that Pegasaas optimized images should be resized

You may find that you come across images in your page where Google PageSpeed indicates that compression and optimization that Pegasaas Accelerator has performed are not enough.  Google PageSpeed Insights may indicate that the image should be resized.

In these situations, if you can find the <img> tag within your website, you can explicitly define the width and height of the image.

For example, if you can find where the HTML is defined for an image:

<img src=”/some-folder/some-image.jpg” />

Try adding an explicit width and height to the image.

<img src=”/some-folder/some-image.jpg” width=”480″ height=”320″ />

When an explicit width and height is specified in the <img> tag, Pegasaas Accelerator will automatically resize the image appropriately.

Remember to size the image to no wider than the maximum width (and appropriate height to keep the aspect ratio) that the image will be displayed on a desktop browser.  Provided that your responsive CSS is defined  correctly, the image will resize down appropriately in smaller browser viewports.