Convert image

Convert image [Paid] 5.2

No permission to buy ($35.00)
Can you possibly make this addon work with the Cloudflare addon image proxy system?

That CF addon uses CF Worker as a proxy system, which is different from the native Xenforo HTTP proxy.
 
Is this Addon still supported? Not working for us with imgur, postimg or any other URL we tested. Links are embedded with bb img tag, the same way as without plugin.

The only error message i can find is this:

"Maximum attachment image dimensions must be greater than 0."

Max dimension value is set as default: 20000
 
Support at the seed of light fixed the issue:

Admin control panel -> Setup -> Options -> Attachments -> Maximum attachment image dimensions.

Values cannot be 0 here for the plugin to work.

Thank you Andy for the fast support!
 
Xenforo 2.2.16

Code:
Server error log
ErrorException: [E_WARNING] Undefined array key "imageOptimization" src/addons/Andy/ConvertImage/Listener.php:99

Stack trace
#0 src/addons/Andy/ConvertImage/Listener.php(99): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/...', 99)
#1 src/addons/Andy/ConvertImage/Listener.php(16): Andy\ConvertImage\Listener::parseMessage(Object(SV\ThreadReplyBanTeeth\XF\Entity\Post), 'post')
#2 src/XF/Extension.php(64): Andy\ConvertImage\Listener::threadEntityPostSave(Object(SV\ThreadReplyBanTeeth\XF\Entity\Post))
#3 src/XF.php(966): XF\Extension->fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#4 src/XF/Mvc/Entity/Entity.php(1288): XF::fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#5 src/XF/Service/Thread/Replier.php(214): XF\Mvc\Entity\Entity->save(true, false)
#6 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\Replier->_save()
#7 src/XF/Pub/Controller/Thread.php(616): XF\Service\Thread\Replier->save()
#8 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(SV\ExtendedIgnore\XF\Pub\Controller\Thread), NULL)
#10 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\ExtendedIgnore\XF\Pub\Controller\Thread), NULL)
#11 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#13 src/XF.php(524): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state
array(4) {
  ["url"] => string(114) "/topics/template-fotowedstrijd-inschrijvingen-mannen-fotowedstrijd-huidig-jaartal-gesponsord-door.396548/add-reply"
  ["referrer"] => string(134) "/topics/template-fotowedstrijd-inschrijvingen-mannen-fotowedstrijd-huidig-jaartal-gesponsord-door.396548/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(10) {
    ["_xfToken"] => string(8) "********"
    ["message"] => string(46) "/attachments/pic004-jpg.5790/"
    ["attachment_hash"] => string(32) "b7dda03959b3452b6bbbca36cbcf0c1b"
    ["attachment_hash_combined"] => string(88) "{"type":"post","context":{"thread_id":396548},"hash":"b7dda03959b3452b6bbbca36cbcf0c1b"}"
    ["last_date"] => string(10) "1712184340"
    ["last_known_date"] => string(10) "1712184340"
    ["load_extra"] => string(1) "1"
    ["_xfRequestUri"] => string(105) "/topics/template-fotowedstrijd-inschrijvingen-mannen-fotowedstrijd-huidig-jaartal-gesponsord-door.396548/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
5.1 installed on fresh 2.3.5
  • ErrorException: Maximum attachment image dimensions must be greater than 0.
 

Hi
Does Convert Image 5.1 support ImageMagick 7.1?
I don’t know what the problem is....
I have Debian 11. I couldn’t install ImageMagick 7 from the repository, so I compiled ImageMagick 7 on the server
After connecting on the forum, errors appear in the logs.

1756582911722.webp

Code:
Server error log
ImagickException: no decode delegate for this image format `/*********/internal_data/temp/convert_664726326' @ error/constitute.c/ReadImage/746 src/addons/Andy/ConvertImage/Listener.php:337
Generated by: ********* 30.08.2025 at 19:16
Stack trace
#0 src/addons/Andy/ConvertImage/Listener.php(337): Imagick->readImage('/*********...')
#1 src/addons/Andy/ConvertImage/Listener.php(16): Andy\ConvertImage\Listener::parseMessage(Object(TickTackk\ChangeContentOwner\XF\Entity\Post), 'post')
#2 src/XF/Extension.php(69): Andy\ConvertImage\Listener::threadEntityPostSave(Object(TickTackk\ChangeContentOwner\XF\Entity\Post))
#3 src/XF.php(1271): XF\Extension->fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#4 src/XF/Mvc/Entity/Entity.php(1336): XF::fire('entity_post_sav...', Array, 'XF\\Entity\\Post')
#5 src/XF/Service/Thread/ReplierService.php(224): XF\Mvc\Entity\Entity->save(true, false)
#6 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\ReplierService->_save()
#7 src/XF/Pub/Controller/ThreadController.php(657): XF\Service\Thread\ReplierService->save()
#8 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\ThreadController->actionAddReply(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(SV\WhoReplied\XF\Pub\Controller\Thread), NULL)
#10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\WhoReplied\XF\Pub\Controller\Thread), NULL)
#11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}
 
Back
Top Bottom