- Compatible XF 2.x versions
- 2.3
Description:
Resize all attached images which are over maximum width and height allowed.
(Example of Resize attachments all page)
(Example of Rebuild caches page)
(Example of Options page)
(Example of Maximum attachment image dimensions selection)
Maximum attachment image dimensions selection:
Although the screenshot above says you can use 0 or blank, this add-on requires you to use a positive value for the Maximum attachment image dimensions settings. I suggest using 2500 x 2500.
Admin control panel -> Setup -> Options -> Attachments -> Maximum attachment image dimensions
How to use:
In your browser add
If you have less than 10000 attachments that need to be resized, run from the Rebuild caches page:
Admin control panel -> Tools -> Rebuild caches -> Resize attachment all
If you have over 10000 attachments that need to be resized, run from CLI.
How to run from CLI:
In cPanel click the Terminal link.
Change directory to where XenForo runs, this is typically in the public_html directory.
Enter the following command:
Questions and Answers:
Q: Will this add-on exclude GIF attachments?
A: Yes.
Q: If the Rebuild CLI stalls, can I restart from the last data_id displayed?
A: Yes just enter that number into the Options page Data ID start field and start the CLI command.
Resize all attached images which are over maximum width and height allowed.
(Example of Resize attachments all page)
(Example of Rebuild caches page)
(Example of Options page)
(Example of Maximum attachment image dimensions selection)
Maximum attachment image dimensions selection:
Although the screenshot above says you can use 0 or blank, this add-on requires you to use a positive value for the Maximum attachment image dimensions settings. I suggest using 2500 x 2500.
Admin control panel -> Setup -> Options -> Attachments -> Maximum attachment image dimensions
How to use:
In your browser add
resizeattachmentsall to your forum URL. This will show just how many attachments need to be resized.If you have less than 10000 attachments that need to be resized, run from the Rebuild caches page:
Admin control panel -> Tools -> Rebuild caches -> Resize attachment all
If you have over 10000 attachments that need to be resized, run from CLI.
How to run from CLI:
In cPanel click the Terminal link.
Change directory to where XenForo runs, this is typically in the public_html directory.
cd public_htmlEnter the following command:
php cmd.php xf-rebuild:resizeattachmentsallQuestions and Answers:
Q: Will this add-on exclude GIF attachments?
A: Yes.
Q: If the Rebuild CLI stalls, can I restart from the last data_id displayed?
A: Yes just enter that number into the Options page Data ID start field and start the CLI command.