• willryanuk

    (@willryanuk)


    We are seeing that custom images sizes are not being uploaded to the CDN… So in functions.php we register a new image size as follows:

    add_image_size( ‘el-img-medium’, 720, 9999, false );

    This will create an image that might be as follows:
    wp-content/uploads/2015/02/my-image-720-308.jpg

    This images does not sync to the CDN. Other custom image sizes do sync to the CDN e.g.
    add_image_size( ‘el-img-square-medium’, 720, 720, true );

    Is there a way to sync images that have an “auto height” i.e. have a height according to their aspect ratio. Or is the only way to do this via the custom file list pattern matching?

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • bazaarocommunity

    (@bazaarocommunity)

    I have the same question. The best I could find is that you have to manually upload your media files to the CDN.

    Thread Starter willryanuk

    (@willryanuk)

    hmmm, that’s a disappointing solution. It would be great if the plugin author could confirm this. And if this is the case, is there any sort of API for the W3 Total Cache plugin such that I could trigger the custom files to be uploaded each time a new image were added to the media library? I feel this should work out the box though, as right now, w3 Total Cache CDN uploader ignores perfectly valid Media Gallery images.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom images sizes are not uploading to the CDN’ is closed to new replies.