horst Posted May 2, 2016 Share Posted May 2, 2016 @Roope: sorry for this with the image array(), but you already have found your way to get the informations before resize and how to alter them within imagesizer. If you need the pageimage as your final result, you can store it with your first hook. If I remeber right, you already hook into before pageimage:size, right? Store it then, and after you have your tinified file, create a variation pageimage like this: $tinifiedPageimage = clone $this->previouslyStoredOriginalPageimage; // from your first hook !! $tinifiedPageimage->setFilename($filenameOfTinifiedFile); $tinifiedPageimage->setOriginal($this->previouslyStoredOriginalPageimage); return $tinifiedPageimage; 2 Link to comment Share on other sites More sharing options...
Roope Posted May 2, 2016 Share Posted May 2, 2016 Thanks @horst! This'll do just fine. When I get v1.1 finished, I'll open specific forum thread for this and push it to the modules directory. 3 Link to comment Share on other sites More sharing options...
David Beesley Posted August 18, 2016 Share Posted August 18, 2016 @Roope Nice work. I have had a look at your GitHub repo. Is this production ready yet? And is it compatible with PW v3? Link to comment Share on other sites More sharing options...
Roope Posted August 27, 2016 Share Posted August 27, 2016 Hi David! I've been super busy all year with our massive house renovation project and haven't got much time to do real work with customer projecs so this module is not tested yet on so many working sites. But it is in use at couple of released projects and works alright. Changes that I promised earlier for v1.1 are done. I haven't tested it on PW3 though, but I can't see no reason why it shouldn't work. Link to comment Share on other sites More sharing options...
james123 Posted February 13, 2017 Share Posted February 13, 2017 Dear All, I think tinypng is old and allows only 20 images however here you can compress 50 images in one short. that solves the problem i feel. i think this png/jpg compressor is better way2enjoy.com/compress-png as it allows 50 files in one chance. if you know any better then kindly share link Regards, James compress-png-jpeg Link to comment Share on other sites More sharing options...
tpr Posted February 13, 2017 Share Posted February 13, 2017 In case you would like to try another module: 1 Link to comment Share on other sites More sharing options...
Roope Posted February 13, 2017 Share Posted February 13, 2017 14 hours ago, james123 said: I think tinypng is old and allows only 20 images however here you can compress 50 images in one short. that solves the problem i feel. You can compress up to 500 images per month for free with TinyPNG API: https://tinypng.com/developers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now