Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: FrizzleFried on May 13, 2015, 11:13:13 AM

Title: Image Rotate Mod?
Post by: FrizzleFried on May 13, 2015, 11:13:13 AM
The number one request I have been getting from users over the last 3 years is a way to rotate images when they upload them and they show up sideways.  Wordpress has a plugin that does this so I am sure it's "possible" ... what are the chances of this ever happening?   I bet 1/3 of the images people upload show up sideways.  It doesn't help that windows rotate in 7+ doesn't really rotate properly (well,  it appears rotated in Windows but shows up sideways when uploading).

Is this doable?
Title: Re: Image Rotate Mod?
Post by: roshaoar on May 13, 2015, 11:33:02 AM
Check out BB code with style mod (http://www.simplemachines.org/community/index.php?topic=379283.0). One of the things it can do is add an optional "rotate" css parameter. You could then use another mod to make some bb code buttons that'd do -90 degrees, -180 degrees, -270 degrees etc.
Title: Re: Image Rotate Mod?
Post by: Shambles on May 13, 2015, 11:43:15 AM
^ not so sure that mod works with uploaded (attached) files, which I think is what the OP means...?
Title: Re: Image Rotate Mod?
Post by: margarett on May 13, 2015, 11:49:53 AM
This applies
http://www.simplemachines.org/community/index.php?topic=521231.msg3756083#msg3756083
Title: Re: Image Rotate Mod?
Post by: roshaoar on May 13, 2015, 11:55:25 AM
Yep, doesn't work with attachments, just inline images. I hadn't read his first post properly.
Title: Re: Image Rotate Mod?
Post by: dougiefresh on March 04, 2016, 08:07:14 PM
Sorry to bump such an old thread, but my Automatic Attachment Rotation (http://custom.simplemachines.org/mods/index.php?mod=4087) mod can do so...
Title: Re: Image Rotate Mod?
Post by: dan4ever on March 11, 2016, 03:36:39 PM
@Dougiefresh

Your mod did not turn the tumbnail in my forum!!

/Dan
Title: Re: Image Rotate Mod?
Post by: dougiefresh on March 12, 2016, 11:52:02 AM
Please attach the image so that I look into this....
Title: Re: Image Rotate Mod?
Post by: dougiefresh on March 13, 2016, 08:26:16 PM
@Dougiefresh

Your mod did not turn the tumbnail in my forum!!

/Dan
I read this statement again just now and I think I understand what is going on.  My mod only deals with rotating NEW attachments, pre-existing attachments are not touched....  If you are looking for functionality to deal with existing attachments, then I can add that into the mod as well.  However, such image processing is quite intensive and possibly time consuming for forums with a large number of attachments.....

Rereading the mod description, it also sounds like I need to clarify the purpose of the mod.....  ???

I would also advise you to post problems regarding specific mods into the support thread of that mod, which in this case is located here (http://www.simplemachines.org/community/index.php?topic=544111.0).....  It is by chance that I can across this particular bug report, and I don't look everywhere for threads regarding my 51 approved mods....  O:) :P

I've quoted these messages and placed them in the right thread for you, to make it easier for me to locate...  O:) :P
Title: Re: Image Rotate Mod?
Post by: dougiefresh on March 27, 2016, 08:25:12 PM
Check out BB code with style mod (http://www.simplemachines.org/community/index.php?topic=379283.0). One of the things it can do is add an optional "rotate" css parameter. You could then use another mod to make some bb code buttons that'd do -90 degrees, -180 degrees, -270 degrees etc.
I was rereading this thread, and picked up on the second post (which I quoted).  In case anybody is interested, here's what I found:

I downloaded that BB code with style mod (http://www.simplemachines.org/community/index.php?topic=379283.0) mod and this really isn't the answer for busy boards, simply because the image is downloaded and processed EVERY time the image is requested, regardless of the source of the image.  It doesn't add CSS to rotate the image, but makes a call to an actual PHP script in order to do the rotation....  A better answer would be to rotate the image and store it on the server, more like a "process once, show many times" type of thing....