Support for HEIC image files?
-
Do you have plans to support HEIC image files? When I upload HEIC files using buddypress-media, I’m getting the following error:
“File not supported. Allowed File Formats: ”
I added the following to my functions.php file:
function rt_custom_allowed_types( $types ){
if ( isset( $types[0] ) && isset( $types[0][‘extensions’] ) ) {
if ( is_rtmedia_upload_photo_enabled() )
$types[0][‘extensions’] .= ‘,heic’; //Allow video types of file to be uplodedfunction rt_custom_allowed_types_admin_settings( $types ){
$allowed_image_string = implode(“,”, $types[‘image’][‘extn’]);
…
$allowed_image = explode(“,”,$allowed_image_string.’,heic’);
…
$types[‘image’][‘extn’] = array_unique( $allowed_image);
…But after I upload the file, it seems like browsers don’t recognize .HEIC files yet. Is there a way to auto convert these to jpg?
- The topic ‘Support for HEIC image files?’ is closed to new replies.