Download the PHP package gevorggalstyan/image2html without Composer

On this page you can find all versions of the php package gevorggalstyan/image2html. 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 image2html

Image to HTML Converter

Description and Simple Usage

This is a library helping to convert JPG and PNG images to HTML.

The library was written to fix image issues in emails. Sometimes when emails contain images they may be blocked in a very unpredicted manner. With the help of this library you can convert image to a HTML table or a style attribute value.

The usage is very simple.

At the top of the PHP file where you want to use the file you specify that you want to use the lib.

After that you can start using the converter.

This will generate a table with 1px X 1px cells representing each pixel of the image.

Usually this method is guaranteed to be successfully delivered to any email client and browser. But as the html of the image becomes very long the email may be truncated in some email services and additional Show full message button click may be required.

You can also get the image as a style attribute value.

Documentation

Constructor

__construct function has several arguments:

As you may notice only $file_name is required. The others have default values.

Acceptable values for $color_type are

Public functions

You can also set the variable values after creating the converter with these functions. Here are their blueprints from the library.

All these values have getters too.

Usually you need to set the width of the image and keep the default values for the rest. That is why the width is the second attribute in the constructor. So the shorter way of one of above examples will be


All versions of image2html with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3.3 || ^7.0
ext-gd Version *
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 gevorggalstyan/image2html contains the following files

Loading the files please wait ....