Skip to Content

Resizing

Width

Parameter: width
Unit: pixels

Resize the image to match the given width while maintaining the current aspect ratio.

Example: ?width=500

Height

Parameter: height
Unit: pixels

Resize the image to match the given height while maintaining the aspect ratio.

Example: ?height=250

Width vs Height

If both width and height parameters are defined, the one that produces a smaller image while preserving the aspect ratio will take effect.

For example, if you have an image with dimensions 500x333 and apply ?width=300&height=250:

  • The width parameter would resize to 300x200
  • The height parameter would resize to 375x250

The system will automatically choose the smaller result (300x200 in this case).

Priority

Crop operations have priority over the width or height commands. If any crop is defined in the query, it will be applied first.

Last updated on
© 2026 FileZen. All rights reserved.