Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295330

Inaccurate text: Images must be smaller than !max pixels.

$
0
0

Problem/Motivation

Before a user uploads an image, if there is a maximum dimension set, the help text reads, for example:
"Images must be smaller than 100x100 pixels." This confuses the user since the image can be automatically resized to accommodate these limits. We therefore replace it with, "Images larger than 100x100 pixels will be resized."

Before the patch

Proposed resolution

Alter the text to be more accurate.

Also, see issues #16 through #33 suggesting that checking for the presence of an image toolkit should not be necessary, as a D8 installation without a toolkit is an edge case, and therefore a condition that is practically impossible to trigger.

After the patch in #31

Remaining tasks

Backport it to D7. Note that D7 version should have consideration for !ImageToolkit::isAvailable() (or functional D7 equivalent)

Contributor tasks needed
TaskNovice task?Contributor instructionsComplete?
Create a patchInstructionsYes
Embed before and after screenshots in the issue summary NoviceInstructionsYes
Backport the Changes to an Earlier Version of Drupal CoreNoviceInstructions

User interface changes

Changes user interface text to read: "Images larger than !max pixels will be resized".

Similar changes to the case where both a minimum and maximum resolution are specified.

The message about *minimum* dimensions (only) is not changed.

API changes

String is used in file file.field.inc line 931.
if/else block says:

- if there's a toolkit, resize the image
- else, just reject it for being too large.

See #847098: Revise image field settings form for clearer ui and usability.

Original report by fietserwin

Should read something like "Images larger than !max pixels will be resized". For the exact choice of text perhaps have a look at #311159: Inaccurate/misleading user text. String is used in file file.field.inc line 931.


Viewing all articles
Browse latest Browse all 295330

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>