TinyPNG Image Compression Add-On
Permalink
Hello! I really would like an add-on using TinyPNG's compression API (compresses PNGs and JPGs beautifully with no noticeable loss of quality). Preferably it should be able to compress images on upload through file manager, as well as bulk compression for previously uploaded files. Here's an outline of what I am thinking:
+ Through dashboard, set developer key from TinyPNG
+ Compresses PNGs and JPGs via TinyPNG's API
+ Should keep track of # of image compressions for that month
+ Choose whether to stop TinyPNG & use default Concrete5 compression after 500 image compressions, or to continue (<500 image compressions are free. After 500, TinyPNG will start charging at about a penny an image; they are billed by TinyPNG at the beginning of the next month.)
+ Bulk compression feature
+ Ideally should keep track of which images have been compressed. This way, if they stop at the 500 limit while doing bulk compression, they can potentially resume where they left off next month when it resets to 0.
+ Also option to force compression over images already compressed, just in case they want to run it again for whatever reason.
Things that may help:
+ TinyPNG's PHP API code:https://tinypng.com/developers/reference/php...
+ Also, I reached out to TinyPNG about this. No add-on for Concrete5 in the works, so we're welcome to develop one. They offered me this as a reference, but I don't know how useful it is to you. (https://github.com/tinify/tinify-php)
I think that about covers it! No rush on this. I don't have a lot of money, but I know this will be using your valuable skills & time. As such, you are totally welcome to submit the code to the marketplace when you're done if you want, and I am willing to offer my skills in return (design, illustration, or front-end work). If you'd feel better about money than a trade, please PM me your quote and I will see if we can work something out!
Thanks so much! :)
+ Through dashboard, set developer key from TinyPNG
+ Compresses PNGs and JPGs via TinyPNG's API
+ Should keep track of # of image compressions for that month
+ Choose whether to stop TinyPNG & use default Concrete5 compression after 500 image compressions, or to continue (<500 image compressions are free. After 500, TinyPNG will start charging at about a penny an image; they are billed by TinyPNG at the beginning of the next month.)
+ Bulk compression feature
+ Ideally should keep track of which images have been compressed. This way, if they stop at the 500 limit while doing bulk compression, they can potentially resume where they left off next month when it resets to 0.
+ Also option to force compression over images already compressed, just in case they want to run it again for whatever reason.
Things that may help:
+ TinyPNG's PHP API code:https://tinypng.com/developers/reference/php...
+ Also, I reached out to TinyPNG about this. No add-on for Concrete5 in the works, so we're welcome to develop one. They offered me this as a reference, but I don't know how useful it is to you. (https://github.com/tinify/tinify-php)
I think that about covers it! No rush on this. I don't have a lot of money, but I know this will be using your valuable skills & time. As such, you are totally welcome to submit the code to the marketplace when you're done if you want, and I am willing to offer my skills in return (design, illustration, or front-end work). If you'd feel better about money than a trade, please PM me your quote and I will see if we can work something out!
Thanks so much! :)
Hi,
I would be more than happy to assist you. Please get me in contact so that we will discuss this more in detail.
Email: vincent.cis20@gmail.com
Skype: cis.vincent
Thanks,
I would be more than happy to assist you. Please get me in contact so that we will discuss this more in detail.
Email: vincent.cis20@gmail.com
Skype: cis.vincent
Thanks,
Hey delusioninabox
Just like A3020 was saying Image Optimizer gets you most of the way there.
https://www.concrete5.org/marketplace/addons/image-optimizer...
You can automate the compression job and allow it to run at certain intervals. That way when user upload new images they will be compressed.
Just like A3020 was saying Image Optimizer gets you most of the way there.
https://www.concrete5.org/marketplace/addons/image-optimizer...
You can automate the compression job and allow it to run at certain intervals. That way when user upload new images they will be compressed.
@delusioninabox fyi, I've added a setting to the Image Optimizer add-on to control the maximum number of optimizations per month. Thanks again for your suggestion.
Thanks for the replies -- but I posted this three years ago, so needless to say, I wasn't still looking! I had forgotten this post still existed to be honest.
Hope your answers help someone else, though. Thanks!
Hope your answers help someone else, though. Thanks!
Your requirements are really clear, well done! I'll put the requirements that haven't been integrated in Image Optimizer, on the roadmap / wish list.