▄▄▄ ▄▄▄
█████▄ ▄▄▄ ▄█████
▄▄▄▄ ▀█████ ▄▄█▓█████▄▄ █████ ▄▄▄ ▄▄▄▄
▄██████████▄████▓ █████████████ ████ ▄█████ ██████
███▓▀▀▀▀█████▓████ █████▀ ▀████▓ ▓███ ▄██▄ █████▓ ▓██████
░▓███▄ ▄████ ████ █████▓ ▓█████▓███ ████ ██████▄ ▄██████▓
████████████▀ ████ █████ █████████ ████▄██▄███████▄███▀████▓
▀███▄ ▄▄▄ ▄████▀ ▓████ █████████ ████████▓███ ▀██▓▀ ████
▀███▄████▄█████ ██████ ████▓█████▄▓████ ▀▀ ████ ▀ ████
▄████▄ ▀▀████████▓ ███████ ▓▓██▀███▀ ▀██████▄██▄ ███ ████
█████████ ▀█▓▀ █████▄▄ ░▓███████▄▄▄████▄██▓ ▀████████████ ████
██████████▄ ▄▄ ▀▀█████▄▄▓████▀███████▀▄███ ▄▄ ████████████ ▓▄▄▄▄ ████▓░
▓█████████████▓▓█▄▄ ▀▀▓▓█████▓░ ▀▀▀ ▄ ▀████▄ ▀██ ████████████ ████▀ ▄███▓
▀███▓▓▓█████████████▄▄▄ ▀▀███▀ ▄███████▄ ▀▀███▄ ▓ ███▓███▓████ ▓█▀ ▄███▀▀
▀▀▀ ▀▀▀▓▓███▄▄▄▄▄███████▀▀▀▀▓ ▀▀ ███▓ ▀▀ ████ ▀ ▀▓▓█▄▄
▀▀▀▀▀▀ ▀▀ ▀██▀ ▀▀▀▀▀
RELEASE NAME....: Lynda.com.Resizing.and.Watermarking.Images.with.PHP-ELOHiM
RELEASE DATE....: 2016-07-14
RELEASE SIZE....: 19x15Mb
FORMAT..........: Bookware
LANGUAGE........: English
URL.............: http://www.lynda.com
Modern websites need to serve high-resolution images to avoid pixelation
and blurring on high-pixel-density displays, but at a file size that loads
quickly, even on mobile devices. This course shows how to use the GD
functions in PHP to resize images and add an optional watermark to them.
Author David Powers demonstrates how to calculate the correct scaling
ratio by automatically measuring the dimensions and detecting the
orientation of a JPEG image. He also explains how to add a watermark using
text or, for a more polished result, an image blended with an alpha
channel. All the techniques covered are completely nondestructive.Chapter
2 pulls everything together, using a custom PHP class that can batch
process multiple images, automatically detect the correct MIME type,
generate custom sizes, and add an optional watermark.
Topics include:
* Scaling an image with imagescale()
* Resizing an image with imagecopyresampled()
* Adding watermarks
* Correcting orientation
* Batch processing images
Subjects: Developer, Web, Web Development, PHP
Author: David Powers
Level: Intermediate
Duration: 1h 56m
Released: 7/14/2016