# Blogger Operator: resizeImage()

Blogger image resize operators are very useful when you want to ensure that an image is displayed in a suitable size. Generally this will be used to get a cropped thumbnail of an image, or to create a responsive image for a mobile-friendly template.

### Operator Syntax

resizeImage(imageUrl, newSize, optionalRatio)

#### Syntax Details

resizeImage
Blogger resize image operator

imageUrl
The original URL of the resizable image.

newSize
The new width of the image

optionalRatio (optional)
The integer ratio of width to height for the resized image, e.g. “1:1” or “4:3”

### Fallback

If the imageUrl parameter is not a resizable image, the resizeImage() operator will return the original image URL.

### Example Usage

<!-- ie: new image size at 300px -->
<img expr:src=’resizeImage(data:post.firstImageUrl, 300)’ />

<!-- ie: new image size at 600px with ratio 1:1 -->
<img expr:src=’resizeImage(data:post.firstImageUrl, 600, &quot;1:1&quot;)’ />

<!-- ie: new image size at 900px with ratio 4:3 -->
<img expr:src=’resizeImage(data:post.firstImageUrl, 900, &quot;4:3&quot;)’ />


1. Blogger has been reiterating all the moments and contents for the individuals. The material has been quite good and ideal for the reforms for the people. Blogger is fully aware of the content for the different goals in life.

2. Where put that code?

3. Thank you. I was looking for a reliable example of the usage syntax for this operator. Most tutorials show it only in a CSS background image. Finally here is a great example of it being used in a standard img tag. Lot of good info in your blog here. I'm sure I'll be referring to it again.

4. thanks
we can use determinate resolution like this:
expr:src=’resizeImage(data:post.firstImageUrl, 300, "300:180")

5. The traditional period for amortization of a mortgage (the time to cover it off) is two-and-a-half decades. canada mortgage calculator Depending about the type of mortgage, TD customers can improve their payments by approximately 100% of their regular payment amount anytime throughout the term from the mortgage. canada mortgage calculator

6. I think this is one of the most important pieces of information for me. Thanks a lot for posting..Turkey visa for US citizens online is easy and fast. you can fill your visa application form turkey & within 24 hour you can get your visa.

7. Wow.. Very informative article thanks for sharing please keep it up.. Pakistan visa application form filled online via Pak visa website. Within 5 to 10 minutes you can fill your visa form online

8. Wow, your post is really very useful thanks for sharing about Photo Resize For Uti Pan. It's really informative. keep sharing more with us.