Grav - Media Resize



Description

By resizing, you change the width and height of the image. The new image has blank areas in the background color which is given as a hex value. If background parameter is not provided, then it takes transparent as default for a PNG image, and white for a JPEG

Example

![My New Image](my-new-image.jpg?resize = 600, 200)

Output

The above code will fetch you the following output −

Grav Media
grav_media.htm
Advertisements