Jump to content

Recommended Posts

Posted

@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
Posted

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.

  • Like 3
  • 3 months later...
  • 2 weeks later...
Posted

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.

  • 5 months later...
Posted

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

 

 

Posted
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

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
  • Recently Browsing   0 members

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