News:

Wondering if this will always be free?  See why free is better.

Main Menu

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 ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

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!

WolfJ

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 ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

WolfJ

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?
"Put as much effort into your question as you'd expect someone to give in an answer"

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.

Be the person your dog thinks you are.

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 ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

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 ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

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 ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

@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.1 with latest TinyPortal at www.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 ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

@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.1 with latest TinyPortal at www.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 ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

txcas

I loaded v.6.11 on SMF 2.1 RC4. When I try to resize and/or reformat existing images I get he following error:
Undefined index: resize_images_timeout

GL700Wing

#334
Quote from: txcas on January 30, 2022, 02:44:32 PMI loaded v.6.11 on SMF 2.1 RC4. When I try to resize and/or reformat existing images I get he following error:
Undefined index: resize_images_timeout
Thanks for letting me know - which file was this error reported for?

I'm currently away on holidays until late March and won't be able to release a new version of this mod with a fix until then.  However, I'll check the code and see if there is a manual fix you can apply now.


Edit: Okay - I've confirmed a text string is missing but this is not the main problem: it seems a processing timeout is occurring - are you using the batch resize/reformat function (ie, Administration Center » Attachments and Avatars » File Maintenance  » 'Automatic Attachment Rotation (and Resize)' Mod - Batch Resize/Reformat Existing Images)?
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

txcas

Quote from: GL700Wing on January 31, 2022, 05:01:00 PM
Quote from: txcas on January 30, 2022, 02:44:32 PMI loaded v.6.11 on SMF 2.1 RC4. When I try to resize and/or reformat existing images I get he following error:
Undefined index: resize_images_timeout
Thanks for letting me know - which file was this error reported for?

I'm currently away on holidays until late March and won't be able to release a new version of this mod with a fix until then.  However, I'll check the code and see if there is a manual fix you can apply now.


Edit: Okay - I've confirmed a text string is missing but this is not the main problem: it seems a processing timeout is occurring - are you using the batch resize/reformat function (ie, Administration Center » Attachments and Avatars » File Maintenance  » 'Automatic Attachment Rotation (and Resize)' Mod - Batch Resize/Reformat Existing Images)?
Thanks. Yes I am using the batch resize/format function.

GL700Wing

Quote from: txcas on February 01, 2022, 03:20:32 PMThanks. Yes I am using the batch resize/format function.
Okay - it seems you have some images that are taking too long to convert and they are causing the batch conversion to fail.

Please ensure you are following the instructions in the readme:
The forum should be configured as follows prior to commencing batch resizing:
o Admin => Configuration => Server Settings => General => Enable Maintenance Mode should be enabled.
o Admin => Configuration => Security and Moderation => General => Disable administration security should be disabled.
o Admin => Forum => Posts and Topics => Topic Settings => Number of posts per page in a topic page should be configured to between 15 and 25 via (make a note of the current value).
o Admin => Forum => Attachments and Avatars => Attachment Settings - Maximum size per attachment, Reformat non-JPEG images to JPEG, JPEG quality factor, Maximum width of attached images and Maximum height of attached images should be configured.
o Admin => Forum => Attachments and Avatars => File Maintenance => Attachment Integrity Check should be run and issues corrected


If the problem persists you could try using the Resize/Reformat Existing Images option in Administration Center » Attachments and Avatars » Browse Files to process small groups of files.
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

sts_pro

First of all thank you for the great mod!

I just started using it and facing one issue: manual thumbnail rotation for existing attachments is not working. I tried both IT and TO modes: image rotation happening without any issues every time, however, thumbnail does not rotate.
Could it be an issue with some settings on my side?

landyvlad

@GL700Wing I have this mod installed on 2.0.19.

I see its noted as compatible with 2.1RC4

With the release now of 2.1.0 is it compatible for use with no further changes necessary?
"Put as much effort into your question as you'd expect someone to give in an answer"

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.

Be the person your dog thinks you are.

GL700Wing

Quote from: landyvlad on February 09, 2022, 07:18:17 PM@GL700Wing I have this mod installed on 2.0.19.

I see its noted as compatible with 2.1RC4

With the release now of 2.1.0 is it compatible for use with no further changes necessary?
No idea and I won't be able to find out for a while as I'm currently at the southern most pub of our southern most state and I won't be home for a month or so after which I have a couple of weeks of motorcycling planned ...

You cannot view this attachment.

Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Advertisement: