Auto orient on load

I have an insert to DB page.

File uploads
Image Loads (w/auto orient)
save

This fails everytime. I remove auto orient and it works.

Hello @wesleyryan,
Could please follow this tutorial:
Debugging Problems and see what’s the error reported when trying to upload your image?

I always forget to do that and include it. Apologies. This is what it says

{“code”:0,“file”:“D:\home\site\wwwroot\dmxConnectLib\lib\image\Processor.php”,“line”:186,“message”:“exif_read_data(201812519D11BA-1478-47B5-8DFF-A6C01951120C.jpg): Illegal IFD size”,“trace”:"#0 [internal function]: exception_error_handler(2, ‘exif_read_data(…’,

Is this happening to all images, or only with images taken with some specific device?

I have not tested that yet. Let me try a non-IOS image. Keep you posted.

Also - what version of PHP are you using?

Does it only with jpg files but not jpeg fies…odd. Also 5.6

I tried renaming the file thinking maybe too long, same problem.

It appears there’s some bug in PHP 5.6, so please try updating your PHP version to a newer one :slight_smile: 7+ is the current version.

https://bugs.php.net/bug.php?id=72914
https://bugs.php.net/bug.php?id=72819

1 Like

Got it, will do it after hours and post update - thank you for the QUICK responses

1 Like

7.0 and 7.1 did not resolve. 7.2 did.

1 Like