- Compatible XF Versions:
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.
- Images resized using ImageMagick for highest quality.
- Images resized to maximum width and height settings in Admin Control Panel (Options -> Attachments).
- Image Proxy images are converted to attachments.
Must have ImageMagick PECL Extension installed on your server. Check if you can select this:
Admin Control Panel -> Options -> Attachments -> Default Image Processor -> ImageMagick PECL Extension
If you're not able to select ImageMagick PECL Extension, contact your web host and ask them to install it.
XenForo Control Panel Requirements:
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_v6.3.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_v6.3.xml file.
- Click the Install Add-on button.
This optional feature is used on forums with many posts, it automates the Convert Image All process. Once all posts have been converted please uncheck this Cron Entry option.
User Group Permissions:
Set the Administrative User Group Permissions to "Allow".
Operation Step 1:
Add "convertimageall" to the end of the URL in your browser.
At this point you will see the following:Code: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 2:
To convert hot links images, click the "Update 1 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, however note setting the Limit switch to a very high number will result in timeout errors. Click the "Update posts" link and 1000 posts will have hot linked images converted to attachments.
Operation Step 3 (Optional):
To run this add-on automatically every 10 minutes, go to the Cron Entry in your Admin Control Panel and enable the Convert Image All entry. There is a table called xf_convert_image_all which stores the last post ID the add-on has processed. The Cron Entry will start with the first post and continue until the last post has been processed. Be sure to set the Limit in the Options page to a higher number like 1000 so each 10 minutes 1000 posts will be processed.
Add 'convertimageall' to your URL to check the progress of the Cron Entry:
The Cron Entry will be completed when the Cron Entry Post ID is close to the last post ID in your forum, note you do need to reload the page to get the latest post ID that was processed. Use phpMyAdmin to determine what is the last post_id of your forum, look at the xf_post table.
The Cron Entry creates a lock_file in the temporary image directory, this will ensure the Cron Entry can only run one instance at a time.
Question and Answers:
Q: Some hot linked image are not converted, why is this?
A: If a hot linked image is either too small, too large, or the dimensions are not able to be read, those images are not converted and will require manual conversion.
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?
Q: Why doesn't this add-on remove dead hot linked images?
A: I have not added that function because the danger of losing data is too great. It's best that posts with dead hot linked images be edited or deleted so you have quality content on your forum.
Q: Does this add-on support XenForo Image Proxy?
Q: Does this add-on get blocked photobucket images?
Q: The Cron Entry created a server error log, now it won't run any more.
A: You need to delete the file called "lock_file" from the /tmp/ folder.
Sending a donation:
If you like this add-on, please consider sending a small donation.
Convert Image All 6.4
Converts ALL hot linked images to attachments.