You are here

README.txt in TinyPNG 8

Same filename and directory in other branches
  1. 7 README.txt
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Installation
 * Configuration
 * TODO


INTRODUCTION
------------
This module provides TinyPNG integration for Drupal 8.

What does TinyPNG do?
TinyPNG uses smart lossy compression techniques to reduce the file size of your
PNG or JPG 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 still
can be large. Use TinyPNG to shrink images for your apps and sites. They will
use less bandwidth and load faster.

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


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

Tinify PHP library >= 1.4.0


INSTALLATION
------------
1. Go to your site root directory and run
  "composer require tinify/tinify:1.4.*".
2. Enable TinyPNG in the Drupal admin.


CONFIGURATION
------------
Having installed the module, go to /admin/config/tinypng page and set your
TinyPNG API key.

On the same page you can select the mode you want to compress images.

With "Compress on upload" mode you will compress images when they are uploaded.

With "TinyPNG image action" mode you have the opportunity to keep your original
image untouched and select the image styles you want to compress.
When this mode is enabled you can add TinyPNG effect to any of your
image styles.



TODO
------------
* Make the file size displayed after upload the compressed image size rather
  than the original. After refreshing the page the filesize is correctly
  displayed.
* Create a service to provide this module's functionality for other modules to
  integrate.
* Implement ImageMagick toolkit operation

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. * TODO
  8. INTRODUCTION
  9. ------------
  10. This module provides TinyPNG integration for Drupal 8.
  11. What does TinyPNG do?
  12. TinyPNG uses smart lossy compression techniques to reduce the file size of your
  13. PNG or JPG files. By selectively decreasing the number of colors in the image,
  14. fewer bytes are required to store the data. The effect is nearly invisible but
  15. it makes a very large difference in file size!
  16. Why should I use TinyPNG?
  17. PNG is useful because it's the only widely supported format that can store
  18. partially transparent images. The format uses compression, but the files still
  19. can be large. Use TinyPNG to shrink images for your apps and sites. They will
  20. use less bandwidth and load faster.
  21. For more information about TinyPNG please visit https://tinypng.com/.
  22. REQUIREMENS
  23. ------------
  24. A TinyPNG API key
  25. You can request one for free at https://tinypng.com/developers.
  26. Tinify PHP library >= 1.4.0
  27. INSTALLATION
  28. ------------
  29. 1. Go to your site root directory and run
  30. "composer require tinify/tinify:1.4.*".
  31. 2. Enable TinyPNG in the Drupal admin.
  32. CONFIGURATION
  33. ------------
  34. Having installed the module, go to /admin/config/tinypng page and set your
  35. TinyPNG API key.
  36. On the same page you can select the mode you want to compress images.
  37. With "Compress on upload" mode you will compress images when they are uploaded.
  38. With "TinyPNG image action" mode you have the opportunity to keep your original
  39. image untouched and select the image styles you want to compress.
  40. When this mode is enabled you can add TinyPNG effect to any of your
  41. image styles.
  42. TODO
  43. ------------
  44. * Make the file size displayed after upload the compressed image size rather
  45. than the original. After refreshing the page the filesize is correctly
  46. displayed.
  47. * Create a service to provide this module's functionality for other modules to
  48. integrate.
  49. * Implement ImageMagick toolkit operation