Image Optimization is (still) a major part in optimizing your site's overall performance and rating. Especially when maintaining a site with multiple Editors, who are "not tech savvy", one more often than not ends up preaching "please optimize your images" only to find some of those 600dpi 150x150px 2.8 MB images in the images folder a few days later - again.
Nowadays online optimizers, such as kraken.io, offer APIs for automatic image optimization, so all it would need was a Hook for Plugins in com_media (like e.g. $this->item->event->afterDisplayTitle in com_content) to run after upload.
Add a "post upload" Hook to com_media for automatic image optimization/manipulation by plugins.
Cheers
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-17 19:28:42 |
Closed_By | ⇒ | pAnd0rASBG |
Oh nice, my bad then.
Cheers for pointing that out.
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_media/controllers/file.php#L146-L180
The
onContentBeforeSave
andonContentAfterSave
events are already triggered.