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

Bob Majdak's Blog:
Making images transparent using Imagick - enter the pixel iterator
Jul 16, 2012 @ 13:35:37

In this recent post to his blog Bob Majdak looks at how to use the Imagick functionality to create images with transparent backgrounds.

So we have this image, and we want to set it to be 75% transparent using Imagick. This sounds simple enough, doesn't it? Perhaps we are trying to create a watermark, or we just want to fade the image for some reason.

He shows how to use the ImagickPixelIterator to take care of some of the issues that can be caused by just a call to "setImageOpacity". A code sample is included in the post showing how to take a source image and make it transparent without ending up with a white border/black background like the other version.

tagged: imagick transparent pixeliterator tutorial transparent

Link:

Bob Majdak's Blog:
Making images transparent using Imagick - enter the pixel iterator
Jul 16, 2012 @ 13:35:37

In this recent post to his blog Bob Majdak looks at how to use the Imagick functionality to create images with transparent backgrounds.

So we have this image, and we want to set it to be 75% transparent using Imagick. This sounds simple enough, doesn't it? Perhaps we are trying to create a watermark, or we just want to fade the image for some reason.

He shows how to use the ImagickPixelIterator to take care of some of the issues that can be caused by just a call to "setImageOpacity". A code sample is included in the post showing how to take a source image and make it transparent without ending up with a white border/black background like the other version.

tagged: imagick transparent pixeliterator tutorial transparent

Link:

PHP Security Blog:
Suhosin 0.9.15 comes with Transparent phpinfo() Protection
Nov 29, 2006 @ 16:43:00

According to this new post on the PHP Security Blog, there's a new META tag the Suhosin extension includes in the output of a phpinfo page to help resolve some of the issues with Google (and buddies) storing the contents of the page, giving a potential attacker information they could exploit.

[The] extra META TAG to the HTML output of phpinfo() that forbids indexing and archiving by robots. For fairness reasons following the embedded links is still allowed to robots, because a lot of projects [...] to get at least a few backlinks for their work, that might result in a better search engine positioning.

The patch can be downloaded from their site.

tagged: suhosin extension transparent phpinfo protection suhosin extension transparent phpinfo protection

Link:

PHP Security Blog:
Suhosin 0.9.15 comes with Transparent phpinfo() Protection
Nov 29, 2006 @ 16:43:00

According to this new post on the PHP Security Blog, there's a new META tag the Suhosin extension includes in the output of a phpinfo page to help resolve some of the issues with Google (and buddies) storing the contents of the page, giving a potential attacker information they could exploit.

[The] extra META TAG to the HTML output of phpinfo() that forbids indexing and archiving by robots. For fairness reasons following the embedded links is still allowed to robots, because a lot of projects [...] to get at least a few backlinks for their work, that might result in a better search engine positioning.

The patch can be downloaded from their site.

tagged: suhosin extension transparent phpinfo protection suhosin extension transparent phpinfo protection

Link:

Guilherme Blanco's Blog:
Transparent PHP AOP
Aug 02, 2006 @ 11:27:49

Guilherme Blanco has submitted a note about a project he's been working on, especially pertinent due to some of the discussion flying around on the subject - his Transparent PHP AOP project.

My AOP package implements this magic with PHP code in a transparent way. This means that the original code does not need to be altered in a special way to add or remove the aspects. It is only necessary to add a comment line to define the location of the pointcuts.

This package is actually a smart caching compiler. It preprocesses the original code to locate the pointcuts. Then it generates a new version that may include the code that implements the aspects that I want to enable.

In his blog entry, there are links to the package downloads and the official manual to help get you started as well as more details on some of the functionality behind the magic.

tagged: transparent aspect oriented transparent aspect oriented

Link:

Guilherme Blanco's Blog:
Transparent PHP AOP
Aug 02, 2006 @ 11:27:49

Guilherme Blanco has submitted a note about a project he's been working on, especially pertinent due to some of the discussion flying around on the subject - his Transparent PHP AOP project.

My AOP package implements this magic with PHP code in a transparent way. This means that the original code does not need to be altered in a special way to add or remove the aspects. It is only necessary to add a comment line to define the location of the pointcuts.

This package is actually a smart caching compiler. It preprocesses the original code to locate the pointcuts. Then it generates a new version that may include the code that implements the aspects that I want to enable.

In his blog entry, there are links to the package downloads and the official manual to help get you started as well as more details on some of the functionality behind the magic.

tagged: transparent aspect oriented transparent aspect oriented

Link:


Trending Topics: