Jump to content

Crowdfunded Tinypng Integration Module


Recommended Posts

@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;
  • Like 2
Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

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

  • 5 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...