dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on August 19, 2017, 04:18:20 PM

Title: Automatic Attachment Rotation
Post by: Chip on August 19, 2017, 04:18:20 PM
http://custom.simplemachines.org/mods/index.php?mod=4087

Introduction
This mod allows the automatic rotation and/or flipping of images ONLY IF the EXIF information contained within (if such exists) indicates that such processing is required in order to show the picture upright.

NOTE: SMF contains an option called Re-encode potentially dangerous image attachments, which is turned on by default.  This re-encoding removes the orientation information from attachments (amongst other things), which means that attachments uploaded prior to this mod being installed will NOT be able to rotated properly, as the EXIF information is missing from the re-encoded attachment file!

Admin Changes
In Admin => Forum => Attachments and Avatars:
o Browse Files: There is a new column for image rotation.  Note that this column isn't shown when there are no images in the list.
o File Maintenance: There is a new section with a button to clear the orientation flags in the database.

Post Screen Changes
Beside each attachment, there is a dropbox for image rotation, listing the options in the following section.

Manual Rotation Options
o No Change
o Horizontal Flip
o Rotate 180 degrees
o Vertical Flip
o Vertical Flip, Rotate 270 degrees clockwise. (90 degrees counter-clockwise)
o Rotate 270 degrees clockwise. (90 degrees counter-clockwise)
o Horizontal Flip, Rotate 270 degrees clockwise. (90 degrees counter-clockwise)
o Rotate 90 degrees clockwise.
Title: Re: Automatic Attachment Rotation
Post by: Chip on September 12, 2017, 08:55:36 PM
this conflicted and also conflicts with this author's other code. Fix waiting, mod is uninstalled.
Title: Re: Automatic Attachment Rotation
Post by: Chip on September 13, 2017, 12:28:08 AM
installed the fix and it broke the forum ... took me ages to figure out that it was this mod as i made a whole bunch of changes.

now uninstalled !

EDIT: and fixed ... install pending.
Title: Re: Automatic Attachment Rotation
Post by: Chip on October 15, 2017, 02:05:08 AM
fixed and reinstalled Version 3.8
SimplePortal 2.3.6 © 2008-2014, SimplePortal