How to display higher-res thumbnails on Blogger

前端 未结 1 1592
长发绾君心
长发绾君心 2021-01-07 11:00

All this time I\'ve been using to display thumbnails on my homepage, which outputs a 72x72 square image origina

1条回答
  •  盖世英雄少女心
    2021-01-07 11:48

    Utilize the resizeImage operator to change image size without JavaScript. The code will look like -

     
    

    resizeImage(imageUrl, newSize, optionalRatio)

    The resizeImage operator takes 3 parameters:

    imageUrl - The original URL of the resizable image.
    newSize - The new width of the image
    (optional) ratio - The integer ratio of width to height for the resized image, e.g. “1:1” or “4:3”

    Notes

    If the imageUrl parameter is not a resizable image, the resizeImage function will return the original imageUrl.
    The ratio must be integer numbers.
    If the ratio is provided, the image will be cropped to those exact dimensions.

    0 讨论(0)
提交回复
热议问题