Adjusting the image types allowed in Drupal 8

When you work with the image fields for the different content types in Drupal 8, you have the ability to determine what image types you want to allow for upload. For instance, you can include the defaults of gif, png, jpeg, and jpg, you may expand to allow other types such as tiff, or even be more restrictive by removing any of the types you wish. Below is the guide on how to perform this within Drupal 8.

How to adjust the allowed image types

  1. Log into your Drupal 8 admin interface.
  2. edu Drupal 8 common images select structure

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

  3. edu Drupal 8 common images select content type

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

  4. edu Drupal 8 108 adjust file types 1 click manage fields

    Now you can select the Content Type you want to work with and click on the Manage Fields link in the dropdown. For this example, we will be working with the Basic page.

  5. edu Drupal 8 108 adjust file types 2 click edit

    This leads you to the page for all the settings for the chosen content type. In this example we chose the Basic Page. Locate the Image label and then click on the Edit option from the dropdown.

  6. edu Drupal 8 108 adjust file types 3 adjust types

    Once on the Image Settings page, locate the Allowed File Extensions and either add additional file types or remove any of the existing ones to fit your desired setup.

  7. Once you have altered the list of file types you want to allow for image uploads, click on the Save Settings button located in the lower left hand corner of the screen. This will activate the change and the new file type list will take effect.

Was this article helpful? Let us know!