Are you over 18 and want to see adult content?
More Annotations
A complete backup of https://starsontv.com
Are you over 18 and want to see adult content?
A complete backup of https://tripshock.com
Are you over 18 and want to see adult content?
A complete backup of https://entrepreneurshipinabox.com
Are you over 18 and want to see adult content?
A complete backup of https://futur-diagnostiqueur.com
Are you over 18 and want to see adult content?
A complete backup of https://techsee.me
Are you over 18 and want to see adult content?
A complete backup of https://thejournalofbusiness.org
Are you over 18 and want to see adult content?
A complete backup of https://nexor.com
Are you over 18 and want to see adult content?
A complete backup of https://spasa.com.au
Are you over 18 and want to see adult content?
A complete backup of https://eve-online.com
Are you over 18 and want to see adult content?
A complete backup of https://projectvisa.com
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of romanconcrete.com
Are you over 18 and want to see adult content?
A complete backup of marketmesuite.com
Are you over 18 and want to see adult content?
Text
PHP IMAGE WORKSHOP
PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.. This class is thought like photo editing software (Photoshop, GIMP): you can superimpose many layers or even layer groups, each layer having a background image. QUICKSTART - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
DOCUMENTATION
Documentation. Learn and understand the layer notion and discover all the tools of ImageWorkshop. If you don't want to read the documentation and want directly to play with ImageWorkshop, just read the "Good practices" chapter (5), it is really important and can avoidsome bugs.
TUTORIALS - PHP IMAGE WORKSHOP Read multiple tutorials to understand the class: see how to create a thumbnail, to watermark an image, etcINSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version:CREATING THUMBNAILS
Create thumbnails easily (in PHP) with ImageWorkshop. We force the image to be resized in a box of 200px / 120px. Here an example with a picture of 640px / 480px: RESIZING - PHP IMAGE WORKSHOP Learn multiple methods to resize an image with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
CROPPING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP GD library is not able to work with animated GIF without breaking them. In fact, a GIF is a compression of multiple images, and GD just use the first of them !ADDING A WATERMARK
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
PHP IMAGE WORKSHOP
PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.. This class is thought like photo editing software (Photoshop, GIMP): you can superimpose many layers or even layer groups, each layer having a background image. QUICKSTART - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
DOCUMENTATION
Documentation. Learn and understand the layer notion and discover all the tools of ImageWorkshop. If you don't want to read the documentation and want directly to play with ImageWorkshop, just read the "Good practices" chapter (5), it is really important and can avoidsome bugs.
TUTORIALS - PHP IMAGE WORKSHOP Read multiple tutorials to understand the class: see how to create a thumbnail, to watermark an image, etcINSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version:CREATING THUMBNAILS
Create thumbnails easily (in PHP) with ImageWorkshop. We force the image to be resized in a box of 200px / 120px. Here an example with a picture of 640px / 480px: RESIZING - PHP IMAGE WORKSHOP Learn multiple methods to resize an image with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
CROPPING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP GD library is not able to work with animated GIF without breaking them. In fact, a GIF is a compression of multiple images, and GD just use the first of them !ADDING A WATERMARK
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
TUTORIALS - PHP IMAGE WORKSHOP Read multiple tutorials to understand the class: see how to create a thumbnail, to watermark an image, etcINTRODUCTION
An ImageWorkshopLayer object could be 2 different things depending on how you want to use it: a layer: this is a rectangle which has a transparent background image by default and where you can paste images (from your hard drive or an upload form) on its background.; a group layer: a layer that includes multiple sublayers at different level in its stack, all leveled on the top of its background. SHOWING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
LAYER - PHP IMAGE WORKSHOP A layer is a rectangle (or a square) which has a width and a height, and a background image having the same width and height. You can resize, crop, rotate, etc, a layer: its width and height and also its background image will be affected. FILTER - PHP IMAGE WORKSHOP Learn how to apply a GD filter with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images, based on GD library GROUP - PHP IMAGE WORKSHOP All layers can be used as a group: in fact, each ImageWorkshop object has a stack of layers: by default, a layer doesn't have any layer in its stack, but you can add one or plural layers (or even subgroups !) in the stack of this layer.. So, a group is a layer, which has a background image and its own width and height, but which has also one or plural layers in its stack. BEAUTIFY YOUR IMAGES WITH FILTERS Beautify your images with GD filters thanks to ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
INITIALIZE WITH A RESOURCE VARIABLE ($IMAGE) The layer will automatically get the width and the height of the image referenced by the variable. Image will be copied in the layerbackground.
CORNERS / POSITIONS SCHEMA OF AN IMAGE ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
HORIZONTAL / VERTICAL FLIP Learn how to a horizontal or vertical flip (mirror effect) on an imagewith ImageWorkshop.
PHP IMAGE WORKSHOP
PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.. This class is thought like photo editing software (Photoshop, GIMP): you can superimpose many layers or even layer groups, each layer having a background image.DOCUMENTATION
Documentation. Learn and understand the layer notion and discover all the tools of ImageWorkshop. If you don't want to read the documentation and want directly to play with ImageWorkshop, just read the "Good practices" chapter (5), it is really important and can avoidsome bugs.
QUICKSTART - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
INSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version: CROPPING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
CREATING THUMBNAILS
Create thumbnails easily (in PHP) with ImageWorkshop. We force the image to be resized in a box of 200px / 120px. Here an example with a picture of 640px / 480px: RESIZING - PHP IMAGE WORKSHOP Learn multiple methods to resize an image with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
FILTER - PHP IMAGE WORKSHOP Learn how to apply a GD filter with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images, based on GD libraryADDING A WATERMARK
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP GD library is not able to work with animated GIF without breaking them. In fact, a GIF is a compression of multiple images, and GD just use the first of them !PHP IMAGE WORKSHOP
PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.. This class is thought like photo editing software (Photoshop, GIMP): you can superimpose many layers or even layer groups, each layer having a background image.DOCUMENTATION
Documentation. Learn and understand the layer notion and discover all the tools of ImageWorkshop. If you don't want to read the documentation and want directly to play with ImageWorkshop, just read the "Good practices" chapter (5), it is really important and can avoidsome bugs.
QUICKSTART - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
INSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version: CROPPING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
CREATING THUMBNAILS
Create thumbnails easily (in PHP) with ImageWorkshop. We force the image to be resized in a box of 200px / 120px. Here an example with a picture of 640px / 480px: RESIZING - PHP IMAGE WORKSHOP Learn multiple methods to resize an image with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
FILTER - PHP IMAGE WORKSHOP Learn how to apply a GD filter with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images, based on GD libraryADDING A WATERMARK
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP GD library is not able to work with animated GIF without breaking them. In fact, a GIF is a compression of multiple images, and GD just use the first of them !INSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version: TUTORIALS - PHP IMAGE WORKSHOP Learn ImageWorkshop thanks to tutorials ! You will see different cases how to use the class and discover many options. Adding a watermark. We will see how to add a watermark on a picture, and see different interesting options that you can use ! Beautify your images with filters. We will play with GD filters to beautify our images. GROUP - PHP IMAGE WORKSHOP All layers can be used as a group: in fact, each ImageWorkshop object has a stack of layers: by default, a layer doesn't have any layer in its stack, but you can add one or plural layers (or even subgroups !) in the stack of this layer.. So, a group is a layer, which has a background image and its own width and height, but which has also one or plural layers in its stack. SURPERIMPOSITION & LEVELS ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP We will see how to work with animated GIF without losing the animation because of GD library. In this tutorial, we want to add a watermark and resize the animated GIF." Illustations: Jim Carrey working onImageWorkshop
GETTING THE IMAGE VARIABLE ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
CLONING AN IMAGEWORKSHOP OBJECT Why ? A php image variable stores a reference to an image in the memory, and when you copy an existant variable, this reference doesn't change: so you've got 2 variables with the same reference to the same image, if you modify the image of one of this variables, the other variable which references on the same image will unfortunetaly pointthe modified image
CORNERS / POSITIONS SCHEMA OF AN IMAGE ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
INITIALIZE WITH A RESOURCE VARIABLE ($IMAGE) The layer will automatically get the width and the height of the image referenced by the variable. Image will be copied in the layerbackground.
HORIZONTAL / VERTICAL FLIP Learn how to a horizontal or vertical flip (mirror effect) on an imagewith ImageWorkshop.
PHP IMAGE WORKSHOP
PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.. This class is thought like photo editing software (Photoshop, GIMP): you can superimpose many layers or even layer groups, each layer having a background image.DOCUMENTATION
Documentation. Learn and understand the layer notion and discover all the tools of ImageWorkshop. If you don't want to read the documentation and want directly to play with ImageWorkshop, just read the "Good practices" chapter (5), it is really important and can avoidsome bugs.
INSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version: QUICKSTART - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
TUTORIALS - PHP IMAGE WORKSHOP Learn ImageWorkshop thanks to tutorials ! You will see different cases how to use the class and discover many options. Adding a watermark. We will see how to add a watermark on a picture, and see different interesting options that you can use ! Beautify your images with filters. We will play with GD filters to beautify our images.CREATING THUMBNAILS
Create thumbnails easily (in PHP) with ImageWorkshop. We force the image to be resized in a box of 200px / 120px. Here an example with a picture of 640px / 480px: CROPPING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
RESIZING - PHP IMAGE WORKSHOP Learn multiple methods to resize an image with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP GD library is not able to work with animated GIF without breaking them. In fact, a GIF is a compression of multiple images, and GD just use the first of them !ADDING A WATERMARK
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
PHP IMAGE WORKSHOP
PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.. This class is thought like photo editing software (Photoshop, GIMP): you can superimpose many layers or even layer groups, each layer having a background image.DOCUMENTATION
Documentation. Learn and understand the layer notion and discover all the tools of ImageWorkshop. If you don't want to read the documentation and want directly to play with ImageWorkshop, just read the "Good practices" chapter (5), it is really important and can avoidsome bugs.
INSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version: QUICKSTART - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
TUTORIALS - PHP IMAGE WORKSHOP Learn ImageWorkshop thanks to tutorials ! You will see different cases how to use the class and discover many options. Adding a watermark. We will see how to add a watermark on a picture, and see different interesting options that you can use ! Beautify your images with filters. We will play with GD filters to beautify our images.CREATING THUMBNAILS
Create thumbnails easily (in PHP) with ImageWorkshop. We force the image to be resized in a box of 200px / 120px. Here an example with a picture of 640px / 480px: CROPPING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
RESIZING - PHP IMAGE WORKSHOP Learn multiple methods to resize an image with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP GD library is not able to work with animated GIF without breaking them. In fact, a GIF is a compression of multiple images, and GD just use the first of them !ADDING A WATERMARK
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
TUTORIALS - PHP IMAGE WORKSHOP Learn ImageWorkshop thanks to tutorials ! You will see different cases how to use the class and discover many options. Adding a watermark. We will see how to add a watermark on a picture, and see different interesting options that you can use ! Beautify your images with filters. We will play with GD filters to beautify our images.INTRODUCTION
An ImageWorkshopLayer object could be 2 different things depending on how you want to use it: a layer: this is a rectangle which has a transparent background image by default and where you can paste images (from your hard drive or an upload form) on its background.; a group layer: a layer that includes multiple sublayers at different level in its stack, all leveled on the top of its background. FILTER - PHP IMAGE WORKSHOP Learn how to apply a GD filter with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images, based on GD library GROUP - PHP IMAGE WORKSHOP All layers can be used as a group: in fact, each ImageWorkshop object has a stack of layers: by default, a layer doesn't have any layer in its stack, but you can add one or plural layers (or even subgroups !) in the stack of this layer.. So, a group is a layer, which has a background image and its own width and height, but which has also one or plural layers in its stack. SHOWING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
SAVING - PHP IMAGE WORKSHOP Saving. By calling the save method, a merged image will be saved in a specified folder. This action generate a merged image, but doesn't merge physically the sublayers of your document: after saving, you'll be able to continue to use your document and to perform some actionson its
SURPERIMPOSITION & LEVELS ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
CORNERS / POSITIONS SCHEMA OF AN IMAGE ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
INITIALIZE WITH A RESOURCE VARIABLE ($IMAGE) The layer will automatically get the width and the height of the image referenced by the variable. Image will be copied in the layerbackground.
HORIZONTAL / VERTICAL FLIP Learn how to a horizontal or vertical flip (mirror effect) on an imagewith ImageWorkshop.
PHP IMAGE WORKSHOP
PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.. This class is thought like photo editing software (Photoshop, GIMP): you can superimpose many layers or even layer groups, each layer having a background image.DOCUMENTATION
Documentation. Learn and understand the layer notion and discover all the tools of ImageWorkshop. If you don't want to read the documentation and want directly to play with ImageWorkshop, just read the "Good practices" chapter (5), it is really important and can avoidsome bugs.
QUICKSTART - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
TUTORIALS - PHP IMAGE WORKSHOP Read multiple tutorials to understand the class: see how to create a thumbnail, to watermark an image, etcINSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version:CREATING THUMBNAILS
Create thumbnails easily (in PHP) with ImageWorkshop. We force the image to be resized in a box of 200px / 120px. Here an example with a picture of 640px / 480px: RESIZING - PHP IMAGE WORKSHOP Learn multiple methods to resize an image with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
ADDING A WATERMARK
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP GD library is not able to work with animated GIF without breaking them. In fact, a GIF is a compression of multiple images, and GD just use the first of them ! CORNERS / POSITIONS SCHEMA OF AN IMAGE ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
PHP IMAGE WORKSHOP
PHP Image Workshop is an open source class using GD library that helps you to manage images with PHP.. This class is thought like photo editing software (Photoshop, GIMP): you can superimpose many layers or even layer groups, each layer having a background image.DOCUMENTATION
Documentation. Learn and understand the layer notion and discover all the tools of ImageWorkshop. If you don't want to read the documentation and want directly to play with ImageWorkshop, just read the "Good practices" chapter (5), it is really important and can avoidsome bugs.
QUICKSTART - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
TUTORIALS - PHP IMAGE WORKSHOP Read multiple tutorials to understand the class: see how to create a thumbnail, to watermark an image, etcINSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version:CREATING THUMBNAILS
Create thumbnails easily (in PHP) with ImageWorkshop. We force the image to be resized in a box of 200px / 120px. Here an example with a picture of 640px / 480px: RESIZING - PHP IMAGE WORKSHOP Learn multiple methods to resize an image with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
ADDING A WATERMARK
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
MANAGE ANIMATED GIF WITH IMAGEWORKSHOP GD library is not able to work with animated GIF without breaking them. In fact, a GIF is a compression of multiple images, and GD just use the first of them ! CORNERS / POSITIONS SCHEMA OF AN IMAGE ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
INSTALLATION
The class is designed for PHP version 5.3+, it includes new specifications like namespaces.If you use an older version, like PHP 5.2, it can work until you remove these specifications.See how to install and use the class depending of your PHP version:INTRODUCTION
An ImageWorkshopLayer object could be 2 different things depending on how you want to use it: a layer: this is a rectangle which has a transparent background image by default and where you can paste images (from your hard drive or an upload form) on its background.; a group layer: a layer that includes multiple sublayers at different level in its stack, all leveled on the top of its background. FILTER - PHP IMAGE WORKSHOP Learn how to apply a GD filter with ImageWorkshop. ImageWorkshop is a PHP 5.3+ library that helps you to manage images, based on GD library SHOWING - PHP IMAGE WORKSHOP ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
GROUP - PHP IMAGE WORKSHOP All layers can be used as a group: in fact, each ImageWorkshop object has a stack of layers: by default, a layer doesn't have any layer in its stack, but you can add one or plural layers (or even subgroups !) in the stack of this layer.. So, a group is a layer, which has a background image and its own width and height, but which has also one or plural layers in its stack. LAYER - PHP IMAGE WORKSHOP A layer is a rectangle (or a square) which has a width and a height, and a background image having the same width and height. You can resize, crop, rotate, etc, a layer: its width and height and also its background image will be affected. SURPERIMPOSITION & LEVELS ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
CLONING AN IMAGEWORKSHOP OBJECT Why ? A php image variable stores a reference to an image in the memory, and when you copy an existant variable, this reference doesn't change: so you've got 2 variables with the same reference to the same image, if you modify the image of one of this variables, the other variable which references on the same image will unfortunetaly pointthe modified image
HORIZONTAL / VERTICAL FLIP Learn how to a horizontal or vertical flip (mirror effect) on an imagewith ImageWorkshop.
PLAYING WITH LAYERS: CREATE A CHRISTMAS CARD The visitor composed his card by adding some decoration. He added his picture (here, a troll face), give his name (here Sybio) and clicked on a button to generate it.ImageWorkshop
ImageWorkshop is a PHP 5.3+ library that helps you to manage images,based on GD library
Download
Find the library on github -Older versions here
* Home
* Quickstart
* Installation
* Documentation
* Tutorials
* About
Introduction
PHP IMAGE WORKSHOP is an OPEN SOURCE class using GD LIBRARY that helps you to manage images with PHP. This class is thought like photo editing software (Photoshop, GIMP...): you can superimpose many layers or even layer groups, each layer having a background image. It makes the class the most flexible ever !For what ?
It is thought to do simple tasks like creating THUMBNAILS or pasting WATERMARKS and also to do more complex tasks (multiple superimpositions, image positioning...). Here is a none exhaustive list of what you can do with: PASTING AN IMAGE (OR MULTIPLE) ON ANOTHER ONE, CROPPING, MOVING, RESIZING, ROTATING, SUPERPOSING, WRITING...How it works ?
An ImageWorkshopLayer object could be 2 different things depending on how you want to use it: * A LAYER: this is a rectangle which has a transparent background image by default and where you can paste images (from your hard drive or an upload form...) on its background. * A GROUP LAYER: a layer that includes multiple sublayers at different level in its stack, all leveled on the top of its background. If you perform an action on the group, all its sublayers (and subgroups) will be affected ! Understand that an IMAGEWORKSHOP OBJECT is a LAYER AND A GROUP at the same time, unlike Photoshop (a group doesn't have a background): it has got a background image (transparent by default) and a stack of sublayers (empty by default) on the top of its background. When you have finished manipulating your layers, you just have to execute a method to get the merged image of all layer backgrounds ! Give me an example ! Right, we will add a watermark on my picture taken on my trip toNorway:
The picture:
The watermark:
Initialization of the layers:1
2
3
4
5
// We initialize the norway layer from the picture norway.jpg$norwayLayer =
ImageWorkshop::initFromPath('/path/to/images/norway.jpg'); // We initialize the watermark layer from the picture watermark.png$watermarkLayer =
ImageWorkshop::initFromPath('/path/to/images/watermark.png'); These layers are created from pictures: they have now the images as a background and their width and height ! Surperimposition of the watermark:1
2
3
4
// Previous code ... // We add the watermark in the sublayer stack of $norwayLayer $norwayLayer->addLayerOnTop($watermarkLayer, 12, 12, "LB"); $norwayLayer is used like a group: you can superimpose multiple layers on its stack, each layer is leveled on the top of its background image. Here, we just add $watermarkLayer on its stack. We chose the $watermarkLayer position thanks to the 4rth parameter "LB" ("Left Bottom") and we applied translations of 12px from the left and the bottom of $norwayLayer borders.Manage the result:
1
2
3
4
5
6
7
// previous code...
$image = $norwayLayer->getResult(); // This is the generated image ! header('Content-type: image/jpeg'); imagejpeg($image, null, 95); // We choose to show a JPG with a qualityof 95%
exit;
Here we choose to show the final image in the navigator, but you can call different methods to generate the image, like save() method to save the image in afolder.
And the result:
So easy, isn't it ?
Learn more
Learn how to use ImageWorkshop in 5 minutes thanks to the quickstart tutorial or read all about the class in the documentation part. PHP Image Workshop © 2011, 2020 - Legal notice - Designed by Clément Guillemain (French Pixel)Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0