• I ran into an odd issue with a client site. Someone uploaded an image (taken on an iPhone) the image looked correct if you browse to its URL and if you download it and look at it on the desktop but looked sideways on the pages and in the admin.

    I figured out that this was an EXIF issue with IOS photos and device orientation. There are quite a few plugins that seem to fix this issue on upload. They seem to work in the gallery but not for xprofile images.

    I did however notice if I uploaded the image twice and WP changed the name of the file the issue corrected itself. Is there anyway I could hook the upload process and force a name change? I was thinking forcing a name change could fix the issue.

Viewing 1 replies (of 1 total)
  • Plugin Author donmik

    (@atallos)

    Hi,

    I’ve been looking around for a solution and found this post.

    I’ve tried to add this to my wp-config.php

    define('ALLOW_UNFILTERED_UPLOADS', true);

    And now it works. Check if one of the solutions posted there can work for you.

    You need of course add “exif” to the allowed extensions with the following code in your functions.php

    add_filter('bxcft_images_ext_allowed', 'my_custom_images_ext_allowed');
    function my_custom_images_ext_allowed($array) {
        array_push($array, 'exif');
        return $array;
    }
    • This reply was modified 7 years, 10 months ago by donmik.
Viewing 1 replies (of 1 total)
  • The topic ‘exif image issue’ is closed to new replies.