Today when we put one of our clients' HubSpot blog through the website grader, we saw that the blog had a page size of 13mb. The problem was that the images they we're uploading as the featured image were large images (3000x3000px+). We quickly figured out that we could resize the original image by adding and specifying a width attribute to the <img> tag. This process changed the page size from 13mb to 1.8mb. I have two examples here: http://cdn2.hubspot.net/hub/53/file-733888619-jpg/assets/hubspot.com/about/management/brian-home.jpg?width=300 http://cdn2.hubspot.net/hub/53/file-733888619-jpg/assets/hubspot.com/about/management/brian-home.jpg?width=500 The first one resizes (crops) the image to a 300px width, and the second image it's resized (cropped) to a 500px width. I got this back from support: "looked into this and it does have to do with the url structure and our ability to intercept the request before our content delivery network receives it. With how these tokens grab the url of an image, we can not manually resize them. Using the default CDN host, http://cdn2.hubspot.net/hubfs/53/00-Blog_Thinkstock_Images/hubspot-15k.png?width=761 needs to be changed to http://cdn2.hubspot.net/hub/53/hubfs/00-Blog_Thinkstock_Images/hubspot-15k.png?width=761" Because we are using the featured image tag, {{ content.post_list_summary_featured_image }}, we can't edit the URL to include the "/hub/"-part. Is it possible to implement that on the featured image url as a standard so we can specify the width in the url on future blogs?
...read more