Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Resize and Manipulate Images in PHP (With Examples)
Sep 14, 2018 @ 15:38:31

The NetTuts.com site has continued their series covering the use of the GD functionality in PHP to manipulate images with a new tutorial posted today. In this second part of the series they focus in on resizing and manipulating images.

In my previous tutorial, we discussed basic image manipulation using the PHP GD library. In that tutorial, I gave a brief introduction to the library and showed you how to load images from a file or create them from scratch in PHP. After that, we learned how to crop, rotate, scale and flip an image using GD. I covered the imagefilter() function to apply different filters to image resources loaded in the script. I also mentioned some useful functions in GD like imagesx() and imagesy() to get the width and height of the loaded image.

By the end of my last GD tutorial, you learned how to use the library to automate basic tasks like resizing all images in a directory or applying filters like grayscale on them before saving the final result. [...] In this tutorial, we will learn about many more useful functions in GD and how they can be used to automate more of our image manipulation tasks.

They start by looking at the imageconvolution function and the use of a "convolution matrix" and how it can be useful to blur, sharpen, emboss, or detect edges on an image. It then covers the functions used to copy images and alter the end result by changing contrast or converting to grayscale. Finally, the author shows how to use the GD functionality to dynamically add a watermark to the image and output the result to a new file.

tagged: gd graphics tutorial resize manipulate image

Link: https://code.tutsplus.com/tutorials/php-gd-image-manipulation-beyond-the-basics--cms-31766

Mikko Koppanen:
Imagick Refresh Updates
Oct 07, 2013 @ 14:21:50

Mikko Koppanen has been posted several new items about the updates being made to the Imagick functionality in PHP (added as a PECL extension). In order o posting they are:

The Imagick extension is a more advanced image manipulation library that the built-in GD functionality. You can find out more about the functions and features it offers in its manual page.

tagged: imagick graphics manipulation update bugfix

Link: http://valokuva.org/

Community News:
Voting open on 2010 Open Source Awards
Oct 06, 2010 @ 16:24:26

According to this new post on the Zend Developer Zone, the voting state of the Packt 2010 Open Source Awards has officially started and you can cast your vote in one of many categories (and maybe win a prize for your efforts).

The nomination stage is now closed and voting has begun in the 2010 Open Source Awards. [...] You can cast your vote here: http://www.packtpub.com/open-source-awards-home/voting-stage.

The categories for the awards this year are:

  • Open Source CMS Award
  • Hall of Fame CMS
  • Most Promising Open Source Project
  • Open Source E-Commerce Applications
  • Open Source JavaScript Libraries
  • Open Source Graphics Software

If you want more information or to cast your vote for any of the projects in these categories, go over to the Packt voting page and get your opinion heard.

tagged: voting packt opensource awards cms project ecommerce javascript graphics

Link:

Elizabeth Smith's Blog:
Cairo Alpha Released
Jul 10, 2009 @ 12:51:03

Elizabeth Smith has posted about the latest release of a PHP extension she's been working hard on - the Cairo 2D graphics extension.

The first alpha of the PECL Cairo extension I've been working on is finally out. Cairo is a 2D graphics library written in C with support for multiple output devices. The extension provides an Object Oriented API, but also includes procedural methods. This is similar to PHP's date and mysqli extensions

The extension (for PHP 5.2.x and 5.3.x versions) requires the CairoGraphics library to work but it allows you to create some great graphics and output them in a number of ways (like PDF, SVG and PostScript). The extension is still in the alpha stages because the API isn't quite complete, but you can still download this version if you'd like to give it a shot.

tagged: alpha extension graphics cairo

Link:

Vinu Thomas' Blog:
pChart - PHP charting library
Oct 22, 2008 @ 12:53:00

Vinu Thomas points out a nice looking PHP charting library on his blog today - pChart.

Looking for some good looking graphs without having to pay for a library or resort to Flash graphs? Try creating your own using pChart. pChart is a PHP class oriented framework designed to create aliased charts. This project focuses on allowing developers to generate great looking graphs by increasing rendering quality introducing an aliasing algorithm.

It uses GD to create the graphs, so just about any PHP distribution out there will support it (if you're not sure, make a phpinfo() page to check out your setup). There's even some example graphs so you can get an idea of what some of the end results could be.

tagged: pchart chart library gd graphics image render

Link:

DevShed:
Drawing Functions and the GD Library in PHP
Aug 21, 2007 @ 19:32:00

DevShed continues their series looking at the use of the graphics functionality in PHP, GD, with part three - a focus on more of the associated functions.

In this third article of the series I'll show you how to take advantage of a few more handy functions integrated with this library. These function will help you perform some basic drawing operations on a specified image stream.

They look at five new functions: imagearc, imagechar/imagecharup and imageellipse/imagefilledellipse with code examples for each.

tagged: gd graphics library drawing function tutorial gd graphics library drawing function tutorial

Link:

DevShed:
Drawing Functions and the GD Library in PHP
Aug 21, 2007 @ 19:32:00

DevShed continues their series looking at the use of the graphics functionality in PHP, GD, with part three - a focus on more of the associated functions.

In this third article of the series I'll show you how to take advantage of a few more handy functions integrated with this library. These function will help you perform some basic drawing operations on a specified image stream.

They look at five new functions: imagearc, imagechar/imagecharup and imageellipse/imagefilledellipse with code examples for each.

tagged: gd graphics library drawing function tutorial gd graphics library drawing function tutorial

Link:

Devshed:
A Close Look at the GD Library in PHP
Aug 16, 2007 @ 12:39:19

In a new article today, DevShed takes a closer look at the most popular graphics library for PHP - GD:

The GD library comes bundled with both PHP 4 and PHP 5. While it is a popular library that has been around for a while, many web developers do not take full advantage of its capabilities. In this five-part series, we will take a close look at what the GB library can do for you, especially in the area of dynamically-generated graphics.

This first in the five part series introduces the library showing how to make images from scratch in two ways - the more "normal" method and an alternate method using streams (which they use to create a dynanmic GIF image).

tagged: graphics library gd tutorial image stream dynamic graphics library gd tutorial image stream dynamic

Link:

Devshed:
A Close Look at the GD Library in PHP
Aug 16, 2007 @ 12:39:19

In a new article today, DevShed takes a closer look at the most popular graphics library for PHP - GD:

The GD library comes bundled with both PHP 4 and PHP 5. While it is a popular library that has been around for a while, many web developers do not take full advantage of its capabilities. In this five-part series, we will take a close look at what the GB library can do for you, especially in the area of dynamically-generated graphics.

This first in the five part series introduces the library showing how to make images from scratch in two ways - the more "normal" method and an alternate method using streams (which they use to create a dynanmic GIF image).

tagged: graphics library gd tutorial image stream dynamic graphics library gd tutorial image stream dynamic

Link:

Pierre-Alain Joye's Blog:
Screen capture with PHP and GD
Apr 18, 2007 @ 12:53:00

In a new blog post today, Pierre-Alain Joye shows a method for doing a screen capture with just PHP and the GD functionality (an updated library, a DLL).

To get a snapshot of a HTML page, a window or a complete screen was always something tricky to do in PHP. For one of my current projects, I had to check that our changes did not affect visually any page. An easy way to achieve this goal is to compare the rendered pages in the browsers itself, easy and time consuming (for a human being :D).

That's why I finally sit down and implemented imagegrabscreen and imagegrabwindow . They capture respectively the whole screen or a window (using its handle).

He includes a few examples including grabbing a default screenshot, grabbing just the contents of a certain application (like Internet Explorer), and grabbing a fullscreened IE window too.

tagged: screen capture gd graphics imagegrabscreen imagegrabwindow screen capture gd graphics imagegrabscreen imagegrabwindow

Link:


Trending Topics: