- Convert Image
Requires ImageMagick to be installed on your server
Requires exec() and chmod execution
The Convert Image All add-on will convert hot linked images to attachments.
The hot linked image will be replaced by a full size inline attachment.
(hot linked image)
This add-on is designed to convert all existing hot linked images contained in all posts. It should also be used every few months to verify there are no hot linked images on your forum.
The Convert Image add-on will convert hot linked images immediately after a message is saved.
- Images resized using ImageMagick for highest quality
- Images resized to maximum width and height settings in Admin Control Panel (Options -> Attachments)
- Setting for temporary image directory
XenForo Control Panel Requirements:
- Requires ImageMagick to be installed on your server
- Requires exec() and chmod execution
This add-on requires a restricted Maximum Attachment Image Dimensions setting. You cannot use 0 or blank as an option. I use the 1600 x 1600 on my forum.
Admin CP -> Home -> Options -> Attachments
- Download convertimageall_v4.0.zip and unzip it.
- Upload the Andy folder to your server. The correct location will be library/Andy.
- From your Admin Control Panel, go to the "Install Add-on" page.
- Upload the addon-ConvertImage_v4.0.xml file.
- Click the Install Add-on button.
User Group Permissions:
Set the Administrative User Group Permissions to "Allow".
Operation Step 1:
Be sure to disable any server side database caching programs.
Operation Step 2:
Add "convertimageall" to the end of the URL in your browser.
At this point you will see the following:代码:Full Friendly URLs http://www.domain.com/convertimageall http://www.domain.com/forums/convertimageall non-Full Friendly URLs http://www.domain.com/index.php?convertimageall http://www.domain.com/forums/index.php?convertimageall
Operation Step 3:
To convert hot links images, click the "Update X posts" link.
At this point you will receive a confirmation "Update successful" message.
Press the back button. At this point it will appear as nothing has happened because you are looking at a cached page, if you reload the page you will see the next post number to convert.
Once you have verified the add-on is working correctly, you can increase the Limit in the Options, then reload the page. For example you can set the Limit switch to 1000:
Click the "Update posts" link and 1000 posts will have hot linked images converted to attachments.
Question and Answers:
Q: Some hot linked image are not converted, why is this?
A: If a hot linked image is corrupt and internal information about width and height are not able to be read, these images are not converted and will require manual fixing.
Q: Why isn't GD supported?
A: GD does a terrible job of creating large images.
Q: Can files in the /tmp/ directory be deleted?
A: Yes, they are not required.
Sending a donation:
If you like this add-on, please consider sending a small donation. My PayPal email address provided upon request via Private Conversation.