CE Lossless
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Causing Effect
Use TinyPNG as driver?
Feature (Resolved)
JP Erasmus
|
Posted: 12 March 2014 01:24 AM |
|
|
|
Hey Aaron,
I am busy trying out CE Lossless and have found definite compression of my images happening using smushit, optipng, pngcrush and jpegtran at the moment (haven’t tried the other drivers yet). My question/feature request is whether you have tried incorporating TinyPNG or would it be possible to add it going forward?
The main reason I am asking is because I have found that even though the drivers I’ve tested do compress the images, the compression does not compare to anything you get from compressing with TinyPNG. From my tests the images get compressed up to 50% more using TinyPNG.
Your thoughts on this would be greatly appreciated.
|
|
|
JP Erasmus
|
Posted: 13 March 2014 10:47 AM |
# 1
|
|
|
No worries, from what I can see now, TinyPNG uses pngquant (http://pngquant.org/), which is not true lossless compression, so will defeat the purpose of adding it to this plugin.
|
|
|
Causing Effect - Aaron Waldon
|
Posted: 19 March 2014 03:00 PM |
# 2
|
|
Developer
|
Hi JP!
That’s interesting. I may add an optional pngquant driver to CE Lossless anyway. It looks very useful! Thanks for the feature request.
Regards,
Aaron
|
|
|
JP Erasmus
|
Posted: 19 March 2014 04:23 PM |
# 3
|
|
|
No problem. It is actually very easy to add to the plugin. I just added ‘pngquant’ as a driver option and then added an if statement under the ‘png’ image switch case. The command was just something like “pngquant—quality=65-80—ext=.png—force {path}” Had to specify the “force” parameter to force an overwrite of the image with the compressed version. Also, from what I could find it was best to run pngquant before pngcrush, etc.
|
|
|
Causing Effect - Aaron Waldon
|
Posted: 19 March 2014 04:25 PM |
# 4
|
|
Developer
|
Excellent.. :) Since it is command-line based, I figured it would be pretty easy to pop in there. Would you mind sending me your modified version to include in the add-on? You can email me at software at causingeffect.com. Thanks!
|
|
|
JP Erasmus
|
Posted: 19 March 2014 04:30 PM |
# 5
|
|
|
Yes, no problem, will mail it to you. :)
|
|
|
Causing Effect - Aaron Waldon
|
Posted: 21 March 2014 06:26 AM |
# 6
|
|
Developer
|
Got it. Thanks!
|
|
|