Convert Image

Convert Image 5.6

No permission to download
Thank you. Yes I do have the option checked for Xenforo and it was working fine before the upgrade to PHP 7.1.

My question was about the error message and what that meant. I am assuming the new version of PHP needs to be recompiled with the ImageMagick extension but wanted to check that this is what those error messages are telling me.
 
My question was about the error message and what that meant. I am assuming the new version of PHP needs to be recompiled with the ImageMagick extension but wanted to check that this is what those error messages are telling me.
It would appear so. CHeck with your host that there php 7.1 upgrade retained usage of imagick
 
I really need a fix to stop the addon from working with pictures hotlinked from my own website.
Normally it should be easy to change the code somewhere to

if URL != myown one, do

Maybe Andy wants to add something like this for the own page (like *name.com/* or www.name.com/hotlinkedpics/*)
or better a blacklist like

www.name1.com
www.name2.com

to let pictures from here untouched.

For other people i could be a good idea to have a whitelist instead:

Only make attachments from URL, when

www.name1.com
www.name2.com

Probably this are two more fields and only some lines of code as i think to proof do and dont with the aray of black- or whitelist.
(Take only white or take all but not black should fetch all ways, right?)
 
BTW: For me it would be a real nice idea not to change every picture saved, but every picture from usergroup x for example.
Another idea is to have a another Addon, almost the same then this, but the admin decides to get the attachment while reading the post.
Only if it is worth or something special i want to save it.

Oh, and sometimes we have some special users, that link a lot of stuff, but the dont care for these pics and after a while they are not existing any more. So i would like to have all pictures from these single users.

Possible function:
1. Manually like written
2. Get all pictures from user x,y,z (or make a new group for them and then)
3. get all pictures from users in group x,y,z
 
And one more thing:

I can select to get rid of links behind a picture.
This is nice against spammers, shure. But again we have to make a difference.

I am the admin i want to offer links.
I have special users that should do the same
Maybe i have some spammers

So:
Delete links from pictures should be also an option for a group.

Admin is allowed
Registered is allowed (to have links)
Group Spammer is not allowed to have links

Sometimes a user is a spammer, but i dont want to kick him. Then i only want to take a way the chance to have links behind pictures (or links at all)

Maybe there is an addon for this if i remember right.
 
This looks like a great add-on. Two features which would likely make it better would be:
  1. Ignore hotlines to the same server (i.e., XenForo Media Gallery)
  2. Add the option for adding a watermark to each image
 
Is there any way I can modify this to convert only internal images (from my own domain) and only from a specific directory?
 
I really need a fix to stop the addon from working with pictures hotlinked from my own website.
Normally it should be easy to change the code somewhere to

if URL != myown one, do

This looks like a great add-on. Two features which would likely make it better would be:
  1. Ignore hotlines to the same server (i.e., XenForo Media Gallery)


This is beyond the current scope of this add-on, but to manually bypass conversion of images hosted on the same domain name you could create a new tag to be used just for those local images using Admin Control Panel > Home > Custom BB Codes.

Your link must be of the relative format (ie: everything after http://www.yourdomain.com/) otherwise Xenforo will put tags around it.

For example:

Code:
[LOCALIMG]path/to/images/myimage.jpg[LOCALIMG]

Here's how to make the BB Code, of course you can name it whatever you like.

localimg.webp

Note that this will automatically be available and shown to everyone in Help > BB Codes.

You can change the example image to whatever you prefer, but keep it small since it will appear on that Help page.

help.webp
 
Last edited:
Thanks for the suggestion, I'm not following exactly what this will do.

What I'm trying to do is convert to attachments only internal images (=from my own domain), and only from a specific directory, say www.mydomain.com/photos/
 
AndyB submitted a new resource:

Convert Image - Converts linked images using the [ IMG ] tags to attachments.



Read more about this resource...
Hi Andy, not sure if there is something that I've done incorrectly but I got this message after removing ConvertImage and installing 5.1
Hot link Errors.webp

Ah I've noticed the previous reply to this problem. Is it possible to reinstall previous working versions as I cannot get rid of the error messages and members keep receiving error messages?
 
Last edited:
I got this message after removing ConvertImage and installing 5.1.....

Ah I've noticed the previous reply to this problem.

Where is that previous reply, please?

Is it possible to reinstall previous working versions as I cannot get rid of the error messages and members keep receiving error messages?

I always keep at least one previous version on my local hard drive just in case. Version 5.0 attached.

Andy tells me the error is not related to the version. Removing the attachment.
 
Last edited:
Admittedly I'm still using version 4.1 of this add-on, as it still works completely fine for me...
 
Errors

XenForo_Exception: Image conversion failed, found script tags within EXIF data. - library/Andy/ConvertImage/DataWriter.php:168

array(3) {
["url"] => string(64) "http://www.forabodiesonly.com/mopar/posts/1971664359/save-inline"
["_GET"] => array(0) {
}
["_POST"] => array(6) {
["message_html"] => string(682) "<p>
The reality is, you're not quite grasping Robert's post.
</p><p><br></p><p>None of you have a grasp of reality. You live in fantasyland. You have no good answers and no ideas as to how to make the unwanted/neglected/abused children's lives better.</p><p><br></p><p>The "conservative" state of AZ allowed a 3 year old and a 2 year old to be placed with this "Foster parent". One of the children is now dead.</p><p><br></p><p><img src="http://www.forabodiesonly.com/mopar/attachments/t343572_030000-240x300-jpg.1715044600/" class="bbCodeImage wysiwygImage" alt="" unselectable="on"> </p><p><br></p><p>That's reality.</p>
"
["_xfRelativeResolver"] => string(94) "http://www.forabodiesonly.com/mopar/threads/ga-child-abuse-case-warning-shocking.206915/page-4"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(65) "/mopar/threads/ga-child-abuse-case-warning-shocking.206915/page-4"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Top Bottom