How to allow gif format also for images

I want to allow gif format also for images. How can I do this?

Please try this code snippet Change the allowed listing image formats #hivepress #listings · GitHub

it is working only on the frontend. How can I make this work in the admin dashboard also?

I want to add a description also above or below the “select image” button such as “Only these formats are allowed”. How can I add this?

Please try this PHP snippet

	function( $model ) {
		$model['fields']['images']['formats'] = [ 'jpg', 'png', 'gif' ];
		$model['fields']['images']['description'] = 'Only these formats are allowed '.implode(', ', $model['fields']['images']['formats']);
		return $model;