Convert Image

Convert Image 5.6

No permission to download
Im sure its easy as punch but i just cant figure out how to install the imagick PECL extension.. I must be getting old because even the documentation i googled did me no good.
 
This will change between distributions, but for Debian you'd want to install the package "php5-imagick" with the command:
Code:
apt-get install php5-imagick

Then restart Apache.
 
This seems like a great add-on. Have you ever thought of making one that converts images that have been posted using linked BBCode (I.e URL tags from third party hosts) into direct linked photos?
 
While this add-on requires you to impute a max value and you cannot simply use "unlimited"... The closest value you can achieve for unlimited, but remaining realistic would be

4096 x 2160

That is the resolution to the newer 4K HD Tv's. So even they can now upload a desktop photo
 
Hi Andy, thanks for sharing this add-on. I've installed your add-on to convert image link to attachment. However
when I test an emage that I've attched after installing this add-on. It's not converting the current image link to attachment.
It's not showing any errors either. I've got imagick installed and I am running on a VPS> I believe all the set up parameter is correct.

Are the links being converted through a cron job or instantly? when linked?
I am having the same issue.

If I go in and edit the post and go into the advanced editor I could see my filename as an attachment, the thumbnail is kind of black, ut when I click on it I just get a blank image.

I do have Imagemagick enabled (works fine in Xenforo) I can see the temporary files being made in the /tmp directory and I enabled exec in my php.ini.

I have had to disable this for now, but would like it working. To me this is better then image proxy. With image proxy in my viglink stops working, and I rely on income from viglink. :D
 
@AndyB since I've upgraded to lastest Xenforo and convert image 2.2 I keep on getting a server error:

Code:
ErrorException: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set - library/Andy/ConvertImage/DataWriter.php:150
Generated By: Eliéser, Monday at 21:23
Stack Trace

#0 [internal function]: XenForo_Application::handlePhpError(2, 'curl_setopt(): ...', '/home/***/...', 150, Array)
#1 /home/***/public_html/***/library/Andy/ConvertImage/DataWriter.php(150): curl_setopt(Resource id #54, 52, 1)
#2 /home/***/public_html/***/library/Andy/ConvertImage/DataWriter.php(48): Andy_ConvertImage_DataWriter->mainLoop('Queria saber se...')
#3 /home/***/public_html/***/library/XenForo/DataWriter/Discussion.php(477): Andy_ConvertImage_DataWriter->save()
#4 /home/***/public_html/***/library/XenForo/DataWriter/Discussion.php(426): XenForo_DataWriter_Discussion->_saveFirstMessageDw()
#5 /home/***/public_html/***/library/XenForo/DataWriter.php(1409): XenForo_DataWriter_Discussion->_postSave()
#6 /home/***/public_html/***/library/XenForo/ControllerPublic/Forum.php(679): XenForo_DataWriter->save()
#7 /home/***/public_html/***/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_Forum->actionAddThread()
#8 /home/***/public_html/***/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/***/public_html/***/index.php(13): XenForo_FrontController->run()
#10 {main}

Request State

array(3) {
  ["url"] => string(95) "https://*******.org/***/forums/contamina%C3%A7%C3%A3o-e-problemas.24/add-thread"
  ["_GET"] => array(1) {
    ["/***/forums/contaminação-e-problemas_24/add-thread"] => string(0) ""
  }
  ["_POST"] => array(12) {
    ["prefix_id"] => string(1) "0"
    ["title"] => string(25) "Contaminação alaranjada"
    ["message_html"] => string(251) "<p>Queria saber se quando há contaminação em um lado do copo, o bolo todo fica comprometido?</p><p>Fiz 4 copos e só apareceu isso em um, qual motivo será?<img src="http://i57.tinypic.com/10sc5zs.jpg" alt="[IMG]" unselectable="on">&nbsp;<br></p>
"
    ["_xfRelativeResolver"] => string(98) "https://*******.org/***/forums/contamina%C3%A7%C3%A3o-e-problemas.24/create-thread"
    ["attachment_hash"] => string(32) "330f69528913634c82854d2a5963bafe"
    ["watch_thread"] => string(1) "1"
    ["watch_thread_state"] => string(1) "1"
    ["poll"] => array(2) {
      ["question"] => string(0) ""
      ["responses"] => array(2) {
        [0] => string(0) ""
        [1] => string(0) ""
      }
    }
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(70) "/***/forums/contamina%C3%A7%C3%A3o-e-problemas.24/create-thread"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Andy, quick question, does this retain the remotely linked image names once they are converted to attachments?
 
Top Bottom