• Welcome to Simple Machines Community Forum. Please login or sign up.
October 25, 2021, 05:41:55 AM

News:

SMF 2.0.18 has been released! Please update. Read more.


Automatic Attachment Rotation (and Resize)

Started by dougiefresh, March 04, 2016, 07:34:59 PM

Previous topic - Next topic

GL700Wing

Quote from: Denny O on May 11, 2021, 11:29:58 PM
I am able to load a 4474.64 kB, 4032x1960 jpeg pic and smaller but unable to load a larger one.
Our site is
SMF 2.0.15 | SMF © 2017, Simple Machines  XHTML RSS WAP2
The mod is
Automatic Attachment Rotation (and Resize)   ver5.8

I can't seem to find a size limit, is there one and if not why might this be a problem?
If you are encountering a 'white screen' issue when attempting to upload images with large dimensions (eg, larger than 4032x1960 pixels) this is an indication that more memory is required for processing the image - you will need to either install a later version of this mod (eg, 5.11 or 6.02) or install the Image Processing Memory Limit mod and configure additional memory for image processing.
Life doesn't have to be perfect to be wonderful ...

Denny O

Upgraded our site early this afternoon to 2.0.18 and Automatic Attachment Rotation (and Resize) to 6.02 and seems to be working flawlessly, at this point anyway.
Hook'in Walleyes while Watch'in my Hawkeyes!

Legosi

Sorry to be a bother but just setting up a fresh forum at the moment but seem to have run into a little issue. Even though I've set the attachment tag not to include the message at the end when I test and save the post to test it, it's still adding the msg part at the end adding the topic title on the right side of the image.

Did I do something wrong, I read the read me and did everything it asked. Checked the resizing and it's worked a treat just this one issue.


Chewing on Cyanide



GL700Wing

Quote from: Legosi on August 14, 2021, 01:23:02 PM
Sorry to be a bother but just setting up a fresh forum at the moment but seem to have run into a little issue. Even though I've set the attachment tag not to include the message at the end when I test and save the post to test it, it's still adding the msg part at the end adding the topic title on the right side of the image.

Did I do something wrong, I read the read me and did everything it asked. Checked the resizing and it's worked a treat just this one issue.
I don't think the issue you've reported relates to this mod as it doesn't have any attachment tags associated with it.

Are you able to post a screen capture of the issue you're encountering?
Life doesn't have to be perfect to be wonderful ...

Legosi

Quote from: GL700Wing on August 14, 2021, 08:11:41 PM
Quote from: Legosi on August 14, 2021, 01:23:02 PM
Sorry to be a bother but just setting up a fresh forum at the moment but seem to have run into a little issue. Even though I've set the attachment tag not to include the message at the end when I test and save the post to test it, it's still adding the msg part at the end adding the topic title on the right side of the image.

Did I do something wrong, I read the read me and did everything it asked. Checked the resizing and it's worked a treat just this one issue.
I don't think the issue you've reported relates to this mod as it doesn't have any attachment tags associated with it.

Are you able to post a screen capture of the issue you're encountering?

Sorry. Yeah I posted in the wrong topic, didn't mean to. I found the right topic and I'll post there. Thanks

Chewing on Cyanide



landyvlad

Any plans for this to be updated to be 2.1.x compatible?
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

GL700Wing

Quote from: landyvlad on September 07, 2021, 01:10:16 AMAny plans for this to be updated to be 2.1.x compatible?
Almost done for SMF 2.1 RC4 - just finishing extensive testing ...
Life doesn't have to be perfect to be wonderful ...

GL700Wing

After almost six months of work I'm pleased to announce the next release of this mod ...

Uploaded v6.10 - September 21, 2021
o Added support for SMF 2.1 RC4 (official release only - not GitHub releases).
o Added support for ImageMagick/Imagick image processor.
o Added support for LazyLoad mod.
o Added support for converting 'webp' images to JPG format.
o Added option to increase PHP 'max_input_time' value for processing images.
o Added options for rotating images and thumbnails separately when modifying a message (and for Admins when browsing files via the Admin center) (See attached image).
o Added code to display a thumbnail-sized copy of each attached image (and a smaller version of the real thumbnail if it exists) when editing a message (and for Admins when browsing files via the Admin center).
o Bug fix for issue reported by Rob Lightbody when manually resizing existing images via "Administration Center >> Attachments and Avatars >> Browse Files >> Resize Existing Images".
o Made some changes in Post.template.php to ensure consistent font sizing when installed with the Post and PM Inline Attachments mod.
o Streamlined process for importing images.
o Consolidated code for resizing images automatically and in batch mode.
o Minor bug fixes.

Zip files containing screen images for SMF 2.0 and SMF 2.1 can also be downloaded with the mod package.


Many thanks once again to @rjen and RockLee for language translations.

Important Note:
This mod supports the official release of SMF 2.1 RC4 only - it will not be updated to support GitHub releases.  It will be only be updated for SMF 2.1 again after the final release version becomes available.
Life doesn't have to be perfect to be wonderful ...

GL700Wing

Quote from: GL700Wing on September 22, 2021, 04:01:17 AMImportant Note:
This mod supports the official release of SMF 2.1 RC4 only - it will not be updated to support GitHub releases.  It will be only be updated for SMF 2.1 again after the final release version becomes available.
As I had already done most of the work required to support the latest GitHub release of RC4 (ie, 18-Sep-21) I finished developing and testing a compatible release this morning and have now decided to release it to allow people who are testing the GitHub release of SMF 2.1 RC4 to also install and test this mod.

There are now two mod files for version 6.10 of this mod:
Automatic_Attachment_Rotation_and_Resize_v6.10-SMF20-SMF21RC4Official.zip which is compatible with SMF 2.0 and the official release of SMF 2.1 RC4; and
Automatic_Attachment_Rotation_and_Resize_v6.10-RC4GitHub-210918.zip which is compatible with the RC4 GitHub release of 18-Sep-21.

Notes for those using any release of SMF 2.1 RC4: There is an 'Image Rotation' option at the bottom of the 'More' dropdown tab shown in the message body for accessing the manual image rotation feature.  Also, and unlike with SMF 2.0, it is not possible to add more attachments when using the 'Image Rotation' option to edit a message.
Life doesn't have to be perfect to be wonderful ...

@rjen

There is a small issue in this package: Automatic_Attachment_Rotation_and_Resize_v6.10-RC4GitHub-210918.zip

For reasons unknown to me the file ResizeExistingImages.english.php has a text string OUTSIDE the php tags. This "IDS" string is showing up in the header of the forum after install.
Pretty sure that should be removed...

IDS<?php
/***********************************************************************************************************
* ResizeExistingImages.english.php - English language file                                                 *
************************************************************************************************************
* This mod is licensed under the 2-Clause BSD License, which can be found here:                            *
* https://opensource.org/licenses/BSD-2-Clause                                                           *
************************************************************************************************************
* Copyright (c) 2016-2021 Douglas Orend, 2019-2021 Kathy Leslie                                            *
Running SMF 2.0 with Tinyportal 2.1.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

GL700Wing

Quote from: @rjen on September 23, 2021, 04:14:35 PMThere is a small issue in this package: Automatic_Attachment_Rotation_and_Resize_v6.10-RC4GitHub-210918.zip

For reasons unknown to me the file ResizeExistingImages.english.php has a text string OUTSIDE the php tags. This "IDS" string is showing up in the header of the forum after install.
Pretty sure that should be removed...
Thanks for letting me know - I've fixed ResizeExistingImages.english.php in both copies of the mod.
Life doesn't have to be perfect to be wonderful ...

@rjen

Latest version in SMF2.1. Calling SMF help page gives two errors:

https://test2.fjr-club.nl/index.php?action=help
Type of error: General
Error message
Hook call: function "AutoRotation_LoadHelp" in file /home/deb77453/domains/fjr-club.nl/public_html/test2 could not be called.

https://test2.fjr-club.nl/index.php?action=help 
Type of error: General
Error message
The callable AutoRotation_LoadHelp could not be called.
Running SMF 2.0 with Tinyportal 2.1.0 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

GL700Wing

Uploaded v6.11 - October 05, 2021
Per @rjen - fixed SMF 2.1 bug by removing reference to AutoRotation_LoadHelp hook.


Thanks to @rjen for reporting this issue.
Life doesn't have to be perfect to be wonderful ...

Advertisement: