Implemented Auto rotate attached images

AndyB

Well-known member
When we upload an image (using the Upload a File button) from an iPad or iPhone, the Xenforo software should check the EXIF and determine if the image needs to be orientated. This would prevent uploaded images from showing in the message in the incorrect orientation (ie: upside down or sideways).
 

Rambro

Well-known member
YES! God, this is driving me nuts. Is there a temp fix for this? I tried changing image handlers and they're still all sideways.
 

AndyB

Well-known member
I'm not aware of any addon or hack to fix this limitation.

What do you mean by "I tried changing image handlers" ??
 

Rambro

Well-known member
I'm not aware of any addon or hack to fix this limitation.

What do you mean by "I tried changing image handlers" ??
Changing from GD to ImageMagick. Someone (maybe Jake?) suggested trying it in a thread. I've been trying my google-fu at this for a few days now. No luck.
 

AndyB

Well-known member
Changing from GD to ImageMagick. Someone (maybe Jake?) suggested trying it in a thread. I've been trying my google-fu at this for a few days now. No luck.
ImageMagick would be used to correct the orientation. The easiest way is to find the php code that checks the image is valid and add the ImageMagick code to correct the orientation.
 

FredC

Well-known member
That would be sweet.. This is also a huge pet peeve for me on my own site. My OCD just goes crazy.. I often resort to editing the post simply to save the photo and reupload it but i cant do that with my user albums plugin and it makes me crazy.
 

AndyB

Well-known member
I wrote a php script that takes two inputs, one the attachment number, the other is the direction you need to rotate the image. So when I run across an attachment that is oriented incorrectly, I call my script and in a few seconds the image is fixed.
 

Rambro

Well-known member
ImageMagick would be used to correct the orientation. The easiest way is to find the php code that checks the image is valid and add the ImageMagick code to correct the orientation.
this might as well be in German with as much understanding as I'm gleaming from it.
 

Rambro

Well-known member
I wrote a php script that takes two inputs, one the attachment number, the other is the direction you need to rotate the image. So when I run across an attachment that is oriented incorrectly, I call my script and in a few seconds the image is fixed.
can you show us how to accomplish something like this?
 

lostincable

Active member
I wrote a php script that takes two inputs, one the attachment number, the other is the direction you need to rotate the image. So when I run across an attachment that is oriented incorrectly, I call my script and in a few seconds the image is fixed.
Yep would be keen as well :)!

I really underestimated the amount of ipad users I had when switching from vb :)!
 

lostincable

Active member
I wrote a php script that takes two inputs, one the attachment number, the other is the direction you need to rotate the image. So when I run across an attachment that is oriented incorrectly, I call my script and in a few seconds the image is fixed.
Any info on that script if you would like to share?
 

Digital Doctor

Well-known member

DeltaHF

Well-known member
Thanks very much for the add-on, @SheepCow.

This really needs to be fixed in the core, though. It causes a lot of confusion for people, as this is handled transparently by nearly every other image hosting service out there.
 

begreen

Member
Agreed, the core app should have the fix. With the proliferation of these devices we are seeing 6-12 images a day from iPads and iPhones that need rotation correction.
 

Rudy

Well-known member
With some of our members using those devices, I agree it needs to be fixed in the core.
 

viper357

Active member
Why doesn't this work on my forum, my members are uploading sideways images all the time, is there a way to enable it?
 
Top