U4-6754 - Resizing image in RTE passes invalid dimension parameters to ImageProcessor

Created by Geoff Polzin 25 Jun 2015, 02:26:55 Updated by Shannon Deminick 25 Jun 2015, 13:18:16

What did you do? Insert an image into RTE and then resize it.

What did you expect to happen? When viewed, ImageProcessor should serve a resized image based on the querystring parameters that get generated by resizing the image in the RTE.

What actually happened? Image is served from ImageProcessor, but it comes out at it's original size. This is because RTE is passing invalid parameters for Width and Height: RTE generates querystring like so: /image.jpg?width=320px&height=240px

This is invalid. Width and height parameters for ImageProcessor should be integer value only, not suffixed with "px" (see: http://our.umbraco.org/projects/collaboration/imageprocessor/feedback-for-imageprocessor/64879-404-when-media-is-provided-by-a-VirtualPathProvider-(UmbracoStorageS3)#comment-219389)

Comments

Shannon Deminick 25 Jun 2015, 13:18:16

rev: 9901b2ee3d23c654c2e47e375e4b244e048e3219


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.3.0

Sprint:

Story Points:

Cycle: