Home > Download >  Library download > Picture library

  • <?php namespace GifCreator; /**  * Create an animated GIF from multiple images  *   * @version 1.0  * @link https://github.com/Sybio/GifCreator  * @author Sybio (Clément Guillemain  / @Sybio01)  * @license http://opensource.org/licenses/gpl-license.php GNU Public License  * @copyright Clément Guillemain  */ class GifCreator {     /**      * @var string The gif string source (old: this->GIF)      */     private $gif;          /**      * @var string Encoder version (old: this->VER)      */ private $version;          /**      * @var boolean Check the image is build or not (old: this->IMG)      */     private $imgBuilt;This class library is very easy to use. You only need to first confirm whether the class library is normal. If it is a composite picture, please make sure to put the decomposed picture in the frames folder. Start the program to get the GIF you want.

    Picture library74312017-12-18
  • <?php /**  * PhpThumb Library Example File  * This file contains example usage for the PHP Thumb Library  * PHP Version 5 with GD 2.0+  * PhpThumb : PHP Thumb Library <http://phpthumb.gxdlabs.com>  * Copyright (c) 2009, Ian Selby/Gen X Design  *  * Author(s): Ian Selby <ian@gen-x-design.com>  *  * Licensed under the MIT License  * Redistributions of files must retain the above copyright notice.  *  * @author Ian Selby <ian@gen-x-design.com>  * @copyright Copyright (c) 2009 Gen X Design  * @link http://phpthumb.gxdlabs.com  * @license http://www.opensource.org/licenses/mit-license.php The MIT License  * @version 3.0  * @package PhpThumb  * @subpackage Examples  * @filesource  */ require_once '../vendor/autoload.php'; $thumb = new PHPThumb\GD(__DIR__ .'/../tests/resources/test.jpg'); $thumb->adaptiveResize(175, 175); $thumb->show();When developing a website with PHP, using object-oriented methods can indeed improve the code reuse rate and reduce code redundancy. What is more friendly to beginners is that most of the class libraries required for PHP website development are already available online. What I bring to you this time is a PHP class library for processing thumbnails. Friends who need it can use it directly.

    Picture library58682017-12-18
  • <?php namespace ImageOptimizer\TypeGuesser; class ExtensionTypeGuesser implements TypeGuesser     public function guess($filepath)     {         $ext = strtolower(pathinfo($filepath, PATHINFO_EXTENSION));         switch($ext) {             case 'png':                 return self::TYPE_PNG;             case 'gif':                 return self::TYPE_GIF;             case 'jpg':             case 'jpeg':                 return self::TYPE_JPEG;             default:                 return self::TYPE_UNKNOWN;         }     } }Manipulate images: remove unnecessary colors, pixels, etc., for example, change the image from large to small. The requirement for web images is to publish images of the highest possible quality in the shortest possible transmission time. Therefore, when designing and processing web page images, it is required that the images have the highest possible resolution and the smallest possible size, so that the download speed of the images can be the fastest. To do this, the image must be optimized.

    Picture library47132017-12-18
  • <?php namespace Intervention\Image; use GuzzleHttp\Psr7\Stream; use Psr\Http\Message\StreamInterface; abstract class AbstractDecoder {     abstract public function initFromPath($path); turn \Intervention\Image\Image     abstract public function initFromBinary($data);     abstract public function initFromGdResource($resource);     abstract public function initFromImagick(\Imagick $object);     private $data;     public function __construct($data = null)     {         $this->data = $data;     }return \Intervention\Image\Image     public function initFromUrl($url)     {                  $options = [             'http' => [                 'method'=>"GET",                 'header'=>"Accept-language: en\r\n".                 "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2\r\n"           ]         ];Image processing is a technology that uses computers to analyze images to achieve the desired results. Also called image processing. Image processing generally refers to digital image processing. A digital image refers to a large two-dimensional array captured by industrial cameras, video cameras, scanners and other equipment. The elements of the array are called pixels, and their values ​​are called grayscale values. Image processing technology generally includes three parts: image compression, enhancement and restoration, matching, description and recognition.

    Picture library60502017-12-18
  • <?php use PHPImageWorkshop\ImageWorkshop as ImageWorkshop; require_once(__DIR__.'/autoload.php'); class ImageWorkshopTest extends \PHPUnit_Framework_TestCase {      const IMAGE_SAMPLE_PATH = '/Resources/images/sample1.jpg';     const FONT_SAMPLE_PATH  = '/Resources/fonts/arial.ttf';     const WEB_PATH          = 'http://localhost:8000';       public function testInitFromPath()     {           $layer = ImageWorkshop::initFromPath(__DIR__.static::IMAGE_SAMPLE_PATH);                  $this->assertTrue(is_object($layer) === true, 'Expect $layer to be an object');         $this->assertTrue(get_class($layer) === 'PHPImageWorkshop\Core\ImageWorkshopLayer', 'Expect $layer to be an ImageWorkshopLayer object');         $layer = ImageWorkshop::initFromPath('file://'.__DIR__.static::IMAGE_SAMPLE_PATH);         $this->assertTrue(is_object($layer) === true, 'Expect $layer to be an object');         $this->assertTrue(get_class($layer) === 'PHPImageWorkshop\Core\ImageWorkshopLayer', 'Expect $layer to be an ImageWorkshopLayer object');Image processing is a technology that uses computers to analyze images to achieve the desired results. Also called image processing. Image processing generally refers to digital image processing. A digital image refers to a large two-dimensional array captured by industrial cameras, video cameras, scanners and other equipment. The elements of the array are called pixels, and their values ​​are called grayscale values. Image processing technology generally includes three parts: image compression, enhancement and restoration, matching, description and recognition.

    Picture library53142017-12-18
  • <?php require '../vendor/autoload.php'; $image = new \NMC\ImageWithText\Image(dirname(__FILE__) . '/source.jpg'); // Add another styled text to image $text2 = new \NMC\ImageWithText\Text('No, really, thanks!', 1, 30); $text2->align = 'left'; $text2->color = '000000'; $text2->font = dirname(__FILE__) . '/Ubuntu-Medium.ttf'; $text2->lineHeight = 20; $text2->size = 14; $text2->startX = 40; $text2->startY = 140; $image->addText($text2); $image->render(dirname(__FILE__) . '/destination.jpg');The text system used in embedded systems is called embedded text. It consists of three parts: software related to embedded text management, managed embedded text, and data structures required to implement embedded text management. Embedded text is the core of the embedded text system. It is the storage form of user data information, thereby realizing the functions of the embedded system.

    Picture library46842017-12-18
  • Library for embedding text in images

    Picture library46062017-12-06
  • A library for optimizing images

    Picture library48172017-12-06
  • an image processing library

    Picture library57712017-12-06
  • A library to extract GIF animation frame information

    Picture library45452017-12-06
  • Thumbnail processing library

    Picture library43722017-12-06
  • Library to extract colors from images

    Picture library42612017-12-06