Image Resizing Transformations

Dimensions and Scaling

Width and Height

Set specific dimensions for your image using width and height parameters:

tr-w_300,h_200
  • Width: w_{pixels} - Sets image width in pixels
  • Height: h_{pixels} - Sets image height in pixels

Advanced Scaling Options

Aspect Ratio

Maintain a specific aspect ratio while resizing:

tr-ar_1.5

Device Pixel Ratio (DPR)

Adjust dimensions for high-density displays:

tr-dpr_2
  • Accepts values between 1.0 and 5.0
  • Useful for retina displays