Notifications
Clear all

wpForo 1.x.x [Closed] Image orientation problem

10 Posts
4 Users
0 Likes
1,092 Views
Posts: 29
Topic starter
(@brakkar)
Trusted Member
Joined: 4 years ago

The attached image shows correct orientation after being uploaded in wpforo. I have Advanced attachement plugin not sure if it makes any difference.

Correct orientation:

- Mobile browser safari and chrome
- When I just open it on my desktop file viewer

Incorrect orientation:

- Desktop browsers

could it be a bug?

 
You can see in this forum that it shows incorrect orientation also on chrome desktop, but NOT on chrome mobile.
9 Replies
Sofy
Posts: 4309
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @brakkar,

We're going to check the issue. Please wait a bit, I'll update the topic asap. 

2 Replies
(@brakkar)
Joined: 4 years ago

Trusted Member
Posts: 29

@sofy this was uploaded by an iPhone. It might be a clue as why it does this. 

Alvina
Moderator
(@alvina)
Joined: 5 years ago

Member
Posts: 1869

@brakkar,

If you use the wpForo default attachment, it work in this way. If the file is opened with a lightbox, the modern browsers have an auto orientation system, the file will open in the right way. In another case, if it open with the direct link to the file for example /wp-content/uploads/image.jpg, you'll see the incorrect orientation.

In case if you use the wpForo Advanced Attachments add-on, please follow the steps below.

1. Please navigate to Dashboard > Forum > Dashboard admin page and make sure either "GD and Image Functions" or "PHP imagick extension" are available. 

2. If none of them are not available you should contact your hosting support and ask them to enable one of those libraries. 

3. Then increase the max_allowed memory size(it should be the big), to allow the server to oriented the images by using the GD library or imagick extension and check again.

Posts: 29
Topic starter
(@brakkar)
Trusted Member
Joined: 4 years ago

Hi,

I think my server settings are fine, and yes I use the advanced attachement:

 

Web Server Apache
PHP Version 7.4.2
MySQL Version 5.7.28
PHP Max Post Size 65M
PHP Max Upload Size 64M
PHP Memory Limit 256M
PHP DateTime Class Available
GD and Image Functions Available
PHP imagick extension Available

4 Replies
Alvina
Moderator
(@alvina)
Joined: 5 years ago

Member
Posts: 1869

@brakkar,

Thank you for details.

That means that the PHP Memory Limit 256M, it's too small to oriented the image from such a quality.

Please try to increase that value and continue checking(500, 750 and etc).

(@brakkar)
Joined: 4 years ago

Trusted Member
Posts: 29

@alvina the image is 3.4 MB, it's impossible that it needs more than 256MB of ram or more like you suggest.

Also it is correctly oriented on some devices and not on other, so it's more an interpretation of orientation. 
Other plugin like metabox.io with image upload field don't have this issue.

 

Look at this please, it seems to be the same problem with images taken from iOS device, which is the case for that image:

https://github.com/nervgh/angular-file-upload/issues/585

People experiencing problem on desktop, not mobile also.

Alvina
Moderator
(@alvina)
Joined: 5 years ago

Member
Posts: 1869

@brakkar,

The issue doesn't have any relation to the wpForo Advanced Attachment add-on, as far as it works fine with normal resolution images. If you try to upload the images with the normal resolution it'll work fine on both Desktop and mobile devices. Thus you should contact your hosting support and let them know about the issue, and asked them to increase the server max memory size. 
Please ask them to fix the issue with the uploading images with big resolutions.

(@brakkar)
Joined: 4 years ago

Trusted Member
Posts: 29

@alvina A 3.4 mb image resolution is perfectly normal those days. Why do you say a 3.4 mb image is not a normal resolution? It's taken from iPhone, most people use phone with 5MB+ images. 

The problem affects your forum as well and has nothing to do with image resolution. You can see the image I uploaded above has the problem also. So it's not just me it affects your own forum as well.

Here is a screenshot of what I see from my browser on mac chrome desktop, you can see it's wrongly oriented when served from your own url. But is ok when viewed from mobile phone.

If it was a problem with my server, it would display also wrongly on mobile, and it would display well on your forum which it isn't.

Robert
Posts: 10503
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @brakkar,

The 3.2MB image is not big. But WordPress has limitation in image resolution. Also there are hosting specific issues. You can read this articles:

https://wordpress.stackexchange.com/questions/130203/limit-image-resolution-on-upload

We recommend upload the same image using the same device in WordPress Dashboard  > Media Library and check the result. This will help us detect your server issues.