Download the PHP package jwtue/jw_watermark without Composer

On this page you can find all versions of the php package jwtue/jw_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 jw_watermark

JW Watermark

Latest Version

This extension adds a Fluid ViewHelper that adds a Watermark image on top of an image.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Alternatively, you can install it without composer through the Typo3 extension repository.

Usage

To use the watermark viewhelper, first import the watermark ViewHelper namespace at the beginning of the fluid HTML file like this (add the second line to an existing html tag):

A typical usage then would look like this:

This will create a link to the image with the watermark image on top of it, with the preview (rendered through a partial) remaining unchanged.

The viewhelper can be used like the f:uri.image ViewHelper documented at https://docs.typo3.org/other/typo3/view-helper-reference/master/en-us/typo3/fluid/latest/Uri/Image.html with all its arguments.

The following additional arguments can be used to add the watermark:

The same as src, treatIdAsReference, image from the f:uri.image ViewHelper, but for the watermark image.

Opacity value for the watermark image (0=fully transparent, 1=fully opaque)

A color hex code to set a background color of the watermark

Opacity for the background color of the watermark (0=fully transparent, 1=fully opaque)

Horizontal position of the watermark in the image (left/center/right)

Vertical position of the watermark in the image (top/middle/bottom)

Offset from the edge in pixels (horizontally and vertically)

If set, watermarkOffset is not interpreted as a pixel value, but as a percentage value (0-100) of the image dimensions. Possible values are width, height, long, short. They set the dimension that the relative value is based upon (width/height of the image, or the long/short side of the image).

Width of the watermark in pixels

If set, watermarkWidth is not interpreted as a pixel value, but as a percentage value (0-100) of the image dimensions. Possible values are width, height, long, short. They set the dimension that the relative value is based upon (width/height of the image, or the long/short side of the image).

Height of the watermark in pixels

If set, watermarkHeight is not interpreted as a pixel value, but as a percentage value (0-100) of the image dimensions. Possible values are width, height, long, short. They set the dimension that the relative value is based upon (width/height of the image, or the long/short side of the image).

Restrictions

Currently, only PNG watermarks have been tested, but JPG Watermarks may work as well. Support for SVG is unknown.

Also, the ViewHelper will only apply watermarks to JPEG images, not any other image formats.

Issues and feature requests

Please report issues and request features at https://github.com/jwtue/jw_watermark/issues.


All versions of jw_watermark with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^12.4
php Version >=8.0.0
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 jwtue/jw_watermark contains the following files

Loading the files please wait ....