1. Home
  2. Knowledge Base
  3. Applications
  4. Drupal
  5. Setting max and min upload sizes for images in Drupal 8

Setting max and min upload sizes for images in Drupal 8

Step 1: Log into your Drupal 8 admin interface.

Step 2: First click on the Menu option from the top menu bar. Next click on the Structure option from the second drop down.

Step 3: This leads you to the Structure listing page. From here, click on the Content Types option.

Step 4: Once on the Content Types page, you select the content type you want to change the image settings for. In this case, we will work with the Article content type. Click on the Manage Fields option from the drop-down on the right side of the row.

Step 5: This is the Manage Fields page, where you see a list of all the fields for this Article content type. Find the Image row and click on the Edit link in the dropdown to the right.

Step 6: You have arrived on the Image Settings page. Scroll down the page until you locate the two fields involved, Maximum image resolution and Minimum image resolution. Here you can enter the sizes to limit the image uploads. In our instance, we are being very restrictive and forcing the image to be exactly 120×120. This would be indicative of using a logo where we want a uniform size.

Step 7: Once you have entered your size restrictions for either one or both fields, click on the Save Settings button. This will put your changes into effect.

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support