Problem/Motivation

If we define a Minimum image resolution, there should be no way of the saved image ended up being minor then that constraint. But there is.

If we also define a Maximum image resolution, user's bigger images are scaled down. In the process, the saved image can end up having a width or height minor then the defined in the "Minimum image resolution". Still, they are accepted.

There are no options, that I know, to avoid this behavior: from the moment on that you define a Maximum image resolution, the Minimum image resolution isn't garanteed anymore.

Proposed resolution

There should be a validation to check if the uploaded image could be scaled respecting both the defined image resolutions. If not, an error should be thrown and the image rejected.

Comments

joachim’s picture

Project: Image » Drupal core
Version: 7.x-1.x-dev » 7.x-dev
Component: image_import » image system

Moving to Drupal core.

micnap’s picture

Status: Active » Closed (duplicate)
cweagans’s picture