Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Benjamin Richardson 2 posts 71 karma points
    Jan 15, 2024 @ 21:33
    Benjamin Richardson

    Query string image resize not working on umbraco 12

    Hi! On Umbraco 12 I'm running into an issue resizing images with query strings. In previous versions of Umbraco I could resize an image in a razor template like so:

    <img src="/media/e2sjgvly/200410983-001.jpg?width=400" />

    Which would then produce a version of the image with a width of 400px. However, in Umbraco 12 this query string only seems to work sporadically, and more often than not returns an image unchanged. See an example below:

    screenshot of a browser window containing an image with the query string width 400 applied. The image remains full size.

    We tried upgrading to the latest version of 12 - 12.5.6. Still the same issue.

Please Sign in or register to post replies

Write your reply to: