?
avatar pAnd0rASBG
pAnd0rASBG
17 Sep 2017

Synopsis

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.

Request

Add a "post upload" Hook to com_media for automatic image optimization/manipulation by plugins.

Cheers

avatar pAnd0rASBG pAnd0rASBG - open - 17 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Sep 2017
avatar mbabker
mbabker - comment - 17 Sep 2017

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_media/controllers/file.php#L146-L180

The onContentBeforeSave and onContentAfterSave events are already triggered.

avatar pAnd0rASBG pAnd0rASBG - change - 17 Sep 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-09-17 19:28:42
Closed_By pAnd0rASBG
avatar pAnd0rASBG pAnd0rASBG - close - 17 Sep 2017
avatar pAnd0rASBG
pAnd0rASBG - comment - 17 Sep 2017

Oh nice, my bad then.
Cheers for pointing that out.

Add a Comment

Login with GitHub to post a comment