Add watermark to image/pdf, or compression.
- 🍭 No sever, so safe.
- 🧂 Save the config for next use or not.
- 🌭 Add any number of watermarks you like by row and col.
- 🍰 Set the watermark anywhere you want by startX, startY and offsetX, offsetY.
- 🍤 Change image width and height, also can compress if you need.
- 🍤 Comprss pdf without watermark, simple repo compress-pdf.
| parameter | description |
|---|---|
| saveConfig | save the config for next use. |
| words | the words of watermark, use enter key to wrap lines. |
| width | the width of image, pdf is not useful. |
| height | the height of image, pdf is not useful. |
| fontSize | the font size of the watermark. |
| color | the color of the watermark, rgba is three-primary color, last parameter is opacity. |
| rotate | the rotation angle of watermark. |
| row | the rows of watermarks. |
| col | the columns of watermarks. |
| startX | the position along the X axis of first watermark. |
| startY | the position along the Y axis of first watermark. |
| offsetX | the offset along the X axis between two watermarks. |
| offsetY | the offset along the Y axis between two watermarks. |
| compression | the level for compression. |