CtrlAltDel
Member
Is it also possible to say to just convert for example only the first image in the post instead of all of them?
Convert image v4.8 changes:
Compatible XF 2.x versions: 2.3. Now supports Image optimization (WebP) function.
Convert image v4.9 changes:
Fixed issue with try / catch 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"
}
}
Convert image v5.0 changes:
Fixed issue with temp file cleanup.
Convert image v5.1 changes:
Updated regex to fix issue with multiple IMG tags on same line.
Convert image v5.2 changes:
Added code to prevent server error if embedded meta data is empty.
We use essential cookies to make this site work, and optional cookies to enhance your experience.