When working with your images in Drupal 7, there are many settings you can adjust to optimize and customize the site you have in mind. One of these settings is to set a minimum size for uploading images. This is for when you may have a particular width and height range you want to work with. Setting this minimum size means that any users who upload images must ensure that the image is at least the height and width that you specify, otherwise the image will be rejected. Modifying the minimum height and width for uploadable images in Drupal 7 is easily done within the admin dashboard. Below are the instructions on how to perform just that.

Modifying the minimum height and width for image uploads in Drupal 7:

  1. Log into the Drupal 7 admin dashboard.
  2. Using the top menu bar, locate and click on the Structure option.
    structure
  3. From this next page, click on the Content Types link.
    content-types
  4. On the Content Types page, find the Basic Pages row and click on the Manage Fields link.
    manage-fields
  5. Find the Image row and then click on the Edit link to take you to the settings page.
    image-edit
  6. On the settings page, scroll down and find the Minimum Image Resolution setting. The defaults are blank, which means there is no minimum setting. To set the minimum range, simply enter your desired minimum range in pixels. In this example, we have set it for 100 width x 110 height. If a user uploads a site that is smaller than the range, Drupal will reject the image for uploading.
    image-min-res
  7. Click on the Save Settings button at the bottom of the page to save your new minimum upload size settings.

Now that you have specified your minimum settings, all users must ensure the image is at least that big for this image field to accept it for upload.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!