transpana.blogg.se

Tinypng compress
Tinypng compress








tinypng compress

It will only try to compress the thumb with tinypng if the compressed image does not already exists.It uses the exact same arguments as the thumb() function.Please help me choose a function name! Give me own suggestions if you have any. The only problem left is naming the function that will replace the thumb() function. I have made a Kirby plugin that are compressing thumbnails. Open(OUTFILE,">$output") || die "\nCould not open $output OUTFILE $data Here is the code… hook('', function( $page ) readdir(DIR) If you DON’T want to overwrite the same file, change the last $input to $output instead.Download and put it in the same folder.Save it as /tinypng/tinypng.php in your plugin folder.Another great things is that Kirby now support hooks! If you need to compress more images each month it costs, but it’s at a low price ($0.009 per image).Ĭompressing images is good for loading time, better user experience and SEO.Ī good thing is that there is an Tinypng API. Each month you can compress up to 500 images free. One of the best services for compressing images is.










Tinypng compress