rotate images / attachments

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Ideas Centre
DWFII
Registered User
Posts: 330
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

rotate images / attachments

Post by DWFII » Sat Aug 12, 2017 3:28 am

Is there an extension to rotate attached images in 3.2?
DWFII
In the High Desert of Central Oregon

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49619
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: rotate images / attachments

Post by stevemaury » Sat Aug 12, 2017 1:25 pm

Are you asking this because some images are displaying sideways? This is an iPhone issue.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

DWFII
Registered User
Posts: 330
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: rotate images / attachments

Post by DWFII » Sat Aug 12, 2017 1:45 pm

stevemaury wrote:
Sat Aug 12, 2017 1:25 pm
Are you asking this because some images are displaying sideways? This is an iPhone issue.
Yes, exactly! I don't have an IPhone but one of my students does and out of 8 (?) images attached every one of them seems to be 90°counterclockwise.

I would try to download each and rotate them in a program like PS but I can't find them in the forum files on the server nor do I have access to them as Admin.

I suspect that more people use IPhone than Samsung but in any case, what with all the hoohaw about "responsiveness" and making phpBB work with smartphones, this would be a priority.

Is this an IPhone issue only on phpBB or is it an issue with other php forums (ie. Xenforo, VBulletin, Simple Machines, etc..) as well?
DWFII
In the High Desert of Central Oregon

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49619
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: rotate images / attachments

Post by stevemaury » Sat Aug 12, 2017 7:34 pm

It is not just bulletin boards. It is ALL internet uploads. For example, Windows Picture and Fax viewer. This is NOT a phpBB issue. Google "iphone pictures sideways".
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

DWFII
Registered User
Posts: 330
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: rotate images / attachments

Post by DWFII » Sat Aug 12, 2017 8:20 pm

Thanks for the info. Good stuff.
DWFII
In the High Desert of Central Oregon

User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 2801
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: rotate images / attachments

Post by thecoalman » Sun Aug 13, 2017 1:36 pm

stevemaury wrote:
Sat Aug 12, 2017 7:34 pm
It is ALL internet uploads.
No it isn't. It only becomes an issue when A)the software displaying the image does not support orientation or B)software manipulating an image does not take into account orientation before manipulation and strips the EXIF data.

All browsers support orientation and plupload supports it. I have not checked if phpBB's implementation of plupload is configured for it. Server side Imagemagick supports it and it can be managed with GD.

DWFII
Registered User
Posts: 330
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: rotate images / attachments

Post by DWFII » Sun Aug 13, 2017 2:58 pm

thecoalman wrote:
Sun Aug 13, 2017 1:36 pm
stevemaury wrote:
Sat Aug 12, 2017 7:34 pm
It is ALL internet uploads.
No it isn't. It only becomes an issue when A)the software displaying the image does not support orientation or B)software manipulating an image does not take into account orientation before manipulation and strips the EXIF data.

All browsers support orientation and plupload supports it. I have not checked if phpBB's implementation of plupload is configured for it. Server side Imagemagick supports it and it can be managed with GD.
So what does that mean? is there an extension for 3.2 that supports rotation? I am using Lightbox right now and AFAIK it doesn't.

Bottom line...is there some way I, as Admin, can rotate images?
DWFII
In the High Desert of Central Oregon

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49619
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: rotate images / attachments

Post by stevemaury » Sun Aug 13, 2017 3:10 pm

thecoalman wrote:
Sun Aug 13, 2017 1:36 pm
stevemaury wrote:
Sat Aug 12, 2017 7:34 pm
It is ALL internet uploads.
No it isn't. It only becomes an issue when A)the software displaying the image does not support orientation or B)software manipulating an image does not take into account orientation before manipulation and strips the EXIF data.

All browsers support orientation and plupload supports it. I have not checked if phpBB's implementation of plupload is configured for it. Server side Imagemagick supports it and it can be managed with GD.
As I understand it, the iPhone files may misreport their orientation depending on the physical orientation of the phone, so there is no way for other software to know what the proper orientation is.

Read the results of the Google search I suggested.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

User avatar
3Di
Registered User
Posts: 12975
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: rotate images / attachments

Post by 3Di » Sun Aug 13, 2017 4:00 pm

DWFII wrote:
Sun Aug 13, 2017 2:58 pm
is there an extension for 3.2 that supports rotation?
Not yet, it is a project I started but I am busy with other stuffs at the moment.
DWFII wrote:
Sat Aug 12, 2017 1:45 pm
I don't have an IPhone but one of my students does and out of 8 (?) images attached every one of them seems to be 90°counterclockwise.
You may want to instruct those students to use a different physical orientation of the phone ATM.

In a perfect world that should be implemented already, indeed.
The side note though is we don't live in a perfect one and things goes the way they are destined to.
Not really a phpBB issue IMO, that could be a feature request to issue in the tracker.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

rxu
Extensions Development Team
Posts: 2862
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: rotate images / attachments

Post by rxu » Sun Aug 13, 2017 4:57 pm

DWFII wrote:
Sun Aug 13, 2017 2:58 pm
is there an extension for 3.2 that supports rotation?
I know such an extension, but it's in beta, requires PHP exif library connected and only handles jpeg images. So, handle with care ;)
https://github.com/AlexSheer/phpbb3.1-R ... ched-Image

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20231
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: rotate images / attachments

Post by Mick » Sun Aug 13, 2017 5:02 pm

If the pictures are taken in landscape do they always display in landscape?
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 2801
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: rotate images / attachments

Post by thecoalman » Sun Aug 13, 2017 5:07 pm

stevemaury wrote:
Sun Aug 13, 2017 3:10 pm
As I understand it, the iPhone files may misreport their orientation depending on the physical orientation of the phone, so there is no way for other software to know what the proper orientation is.
I'm not aware of any specific issues with Apple but it's not just apple phones using this, even high end cameras can be set to use it. This image is correctly handled by plupload on my test forum after being resized client side, the thumbnail generated server side is not.
Attachments
Portrait_5.jpg

User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 2801
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: rotate images / attachments

Post by thecoalman » Sun Aug 13, 2017 5:24 pm

Just to add it should be fairly easy to implement thumbnail creation client side with plupload? It would avoid any issues with server side compatibility.

DWFII
Registered User
Posts: 330
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: rotate images / attachments

Post by DWFII » Sun Aug 13, 2017 5:42 pm

Mick wrote:
Sun Aug 13, 2017 5:02 pm
If the pictures are taken in landscape do they always display in landscape?
Yes, they do.

But this is weird...on the PC (in a 3.2 phpBB forum using Lightbox) the thumbnails are rotated and when the photo is clicked on, it opens up rotated. And very, very slowly.

When the self-same forum is opened on a phone (IPhone or Samsung S6) the thumbnails again are rotated but when the photo is clicked on the photo opens / expands properly (not rotated) although still a bit slowly. Even when the phoned is held in "portrait" / vertical position. :?
DWFII
In the High Desert of Central Oregon

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20231
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: rotate images / attachments

Post by Mick » Sun Aug 13, 2017 5:45 pm

Do you have an example URL where this happens? I'm not saying I have a fix or anything I'm just interested to see what's going on.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

Post Reply

Return to “phpBB Discussion”

Who is online

Users browsing this forum: Exabot [Bot] and 15 guests