You are here

README.txt in TinyPNG 7

Same filename and directory in other branches
  1. 8 README.txt
CONTENTS OF THIS FILE
---------------------
    
 * Introduction
 * Requirements
 * Installation
 * Configuration
 * Maintainers
  
 
INTRODUCTION
------------
Provides TinyPNG integration for Drupal 7. This module creates a new
ImageToolkit which uses other toolkits in the background. The secondary toolkit
could be the core GD or ImageMagick toolkit provided by ImageMagick module.

In the background TinyPNG module just calls the functions of secondary toolkit
but in the last step it sends the image to the TinyPNG API to compress it.
 
What does TinyPNG do?
TinyPNG uses smart lossy compression techniques to reduce the file size of your
PNG files. By selectively decreasing the number of colors in the image, fewer
bytes are required to store the data. The effect is nearly invisible but it
makes a very large difference in file size!

Why should I use TinyPNG?
PNG is useful because it's the only widely supported format that can store
partially transparent images. The format uses compression, but the files can
still be large. Use TinyPNG to shrink images for your apps and sites. It will
use less bandwidth and load faster.

For more information about TinyPNG please visit https://tinypng.com/.


REQUIREMENS
------------
Libraries module

A TinyPNG API key
You can request one for free at https://tinypng.com/developers.

Tinify PHP library >= 1.3.0
You can download it from https://github.com/tinify/tinify-php/

 
INSTALLATION
------------
Download Tinify PHP library v1.3.0+ from https://github.com/tinify/tinify-php/
and place it under $DRUPAL_ROOT/sites/all/libraries

You can also install Tinify PHP with drush: just run drush tinypng-library.

After Tinify PHP library installation the Tinfiy.php should be found
at $DRUPAL_ROOT/sites/all/libraries/tinify-php/lib/Tinify.php

Install as you would normally install a contributed Drupal module.
See: https://drupal.org/documentation/install/modules-themes/modules-7
for further information.

INSTALLATION VIA DRUSH
----------------------
A Drush command is provided for easy installation of the Tinify-PHP library.

drush tinypng-library
The command will download the library and unpack it in "sites/all/libraries".
 
CONFIGURATION
------------
Having installed the module, go to admin/config/media/image-toolkit page and
select TinyPNG as default Image toolkit.
Save the form. Then select the secondary toolkit.
Save the form. Then setup the secondary toolkit too.


MAINTAINERS
------------
Vince Tikász, https://www.drupal.org/u/tikaszvince
István Csáki, https://www.drupal.org/u/csakiistvan

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. * Maintainers
  8. INTRODUCTION
  9. ------------
  10. Provides TinyPNG integration for Drupal 7. This module creates a new
  11. ImageToolkit which uses other toolkits in the background. The secondary toolkit
  12. could be the core GD or ImageMagick toolkit provided by ImageMagick module.
  13. In the background TinyPNG module just calls the functions of secondary toolkit
  14. but in the last step it sends the image to the TinyPNG API to compress it.
  15. What does TinyPNG do?
  16. TinyPNG uses smart lossy compression techniques to reduce the file size of your
  17. PNG files. By selectively decreasing the number of colors in the image, fewer
  18. bytes are required to store the data. The effect is nearly invisible but it
  19. makes a very large difference in file size!
  20. Why should I use TinyPNG?
  21. PNG is useful because it's the only widely supported format that can store
  22. partially transparent images. The format uses compression, but the files can
  23. still be large. Use TinyPNG to shrink images for your apps and sites. It will
  24. use less bandwidth and load faster.
  25. For more information about TinyPNG please visit https://tinypng.com/.
  26. REQUIREMENS
  27. ------------
  28. Libraries module
  29. A TinyPNG API key
  30. You can request one for free at https://tinypng.com/developers.
  31. Tinify PHP library >= 1.3.0
  32. You can download it from https://github.com/tinify/tinify-php/
  33. INSTALLATION
  34. ------------
  35. Download Tinify PHP library v1.3.0+ from https://github.com/tinify/tinify-php/
  36. and place it under $DRUPAL_ROOT/sites/all/libraries
  37. You can also install Tinify PHP with drush: just run drush tinypng-library.
  38. After Tinify PHP library installation the Tinfiy.php should be found
  39. at $DRUPAL_ROOT/sites/all/libraries/tinify-php/lib/Tinify.php
  40. Install as you would normally install a contributed Drupal module.
  41. See: https://drupal.org/documentation/install/modules-themes/modules-7
  42. for further information.
  43. INSTALLATION VIA DRUSH
  44. ----------------------
  45. A Drush command is provided for easy installation of the Tinify-PHP library.
  46. drush tinypng-library
  47. The command will download the library and unpack it in "sites/all/libraries".
  48. CONFIGURATION
  49. ------------
  50. Having installed the module, go to admin/config/media/image-toolkit page and
  51. select TinyPNG as default Image toolkit.
  52. Save the form. Then select the secondary toolkit.
  53. Save the form. Then setup the secondary toolkit too.
  54. MAINTAINERS
  55. ------------
  56. Vince Tikász, https://www.drupal.org/u/tikaszvince
  57. István Csáki, https://www.drupal.org/u/csakiistvan