Download the PHP package tourze/blind-watermark without Composer

On this page you can find all versions of the php package tourze/blind-watermark. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package blind-watermark

Blind Watermark

中文

[Latest Version] (https://packagist.org/packages/tourze/blind-watermark) [Total Downloads] (https://packagist.org/packages/tourze/blind-watermark)
[PHP Version] (https://packagist.org/packages/tourze/blind-watermark) [License] (https://packagist.org/packages/tourze/blind-watermark)
[Build Status] (https://github.com/tourze/monorepo/actions) [Code Coverage] (https://codecov.io/gh/tourze/monorepo)

A PHP implementation of blind watermarking technology that allows embedding invisible text watermarks into images using DCT (Discrete Cosine Transform).

Table of Contents

Requirements

Features

Installation

Install via Composer:

Quick Start

Basic Usage

Embed Watermark

Extract Watermark

Advanced Usage

Advanced Configuration

Step-by-Step API

Command Line Usage

The package includes command-line scripts for easy watermark operations:

Embed watermark

Extract watermark

Configuration Parameters

Parameter Description Default Range
alpha Watermark strength coefficient 36.0 0.1 - 100.0
blockSize DCT block size 8 4, 8, 16
position Embedding position in DCT matrix [3, 4] [0-7, 0-7]

Anti-Attack Features

Symmetric Embedding

Protects against horizontal and vertical flipping by embedding watermark information symmetrically.

Multi-Point Embedding

Enhances robustness by embedding the same watermark bit at multiple positions.

Geometric Correction

Automatically detects and corrects geometric transformations before extraction.

Exception Handling

All errors are thrown as BlindWatermarkException:

Technical Details

The library implements blind watermarking using DCT (Discrete Cosine Transform):

  1. Embedding Process:

    • Decomposes the image into RGB channels
    • Applies 8x8 block DCT transformation to the blue channel
    • Embeds watermark bits in mid-frequency DCT coefficients
    • Reconstructs the image using inverse DCT
  2. Extraction Process:
    • Performs the same DCT transformation on the watermarked image
    • Extracts embedded bits from the designated DCT coefficients
    • Reconstructs the original text from the binary data

Limitations

Performance Considerations

Security

Security Considerations

Best Practices

  1. Use strong, unique parameters for each watermarking session
  2. Implement additional encryption for sensitive watermark content
  3. Regularly test watermark robustness against common image processing operations
  4. Monitor for potential watermark removal attempts

Contributing

We welcome contributions! Please follow these guidelines:

Reporting Issues

Submitting Pull Requests

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests: ./vendor/bin/phpunit packages/blind-watermark/tests
  5. Run static analysis: php -d memory_limit=2G ./vendor/bin/phpstan analyse packages/blind-watermark
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

Code Style

Testing Requirements

Changelog

[Unreleased]

License

This package is open-sourced software licensed under the MIT license.


All versions of blind-watermark with dependencies

PHP Build Version
Package Version
Requires ext-gd Version *
psr/log Version ^3|^2|^1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tourze/blind-watermark contains the following files

Loading the files please wait ...