Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

Archived entries for gd

PHP: Image Manipulation

Ich habe gerade die PHP Bibliothek WideImage entdeckt:

WideImage is an object-oriented library for image manipulation. It requires PHP 5.2.x or 5.3.x with GD2 extension. It’s E_ALL + E_STRICT compliant and fairly well tested with Simpletest.

The library focuses on ease of use of the most common image operations. It provides a simple and unified way to loading and saving images from/to files, strings, database, uploads and URL addresses. Supports the most common image formats.

Und so sieht’s aus:

WideImage::load('big.png')->resize(50, 30)->saveToFile('small.jpg');
WideImage::load('pic.jpg')->crop('center', 'center', 90, 50)->output('png');

Cool, so was braucht man doch recht häufig. Und hier ist jemand dabei daraus ein library plugin für Joomla 1.6 zu schreiben. I like.

Gesichtserkennung mit PHP

Wow, Maurice Svay hat eine Gesichserkennung nur mit PHP und GD geschrieben.

Lately, I’ve been looking for ways to detect faces in photos with PHP. (…) I expected to find many solutions for doing it with PHP. Surprisingly, the only one I could find is OpenCV, an opensource lib that was originally developed by Intel. OpenCV seems to perform well but you need to be able to install it on your server. In my case, I wanted to have a pure PHP solution, so it can work with most hosts.

Ich habe seine Lösung nicht ausprobiert bin aber alleine von dem Vorhaben beeindruckt.

via web-schnipsel

Image Cropping with JQuery

Jcrop ist ein Jquery Plugin zur Bildbeschneidung.

Jcrop is the quick and easy way to add image cropping functionality to your web application.

Features:

  • Attaches simply to any image in your HTML page
  • Supports aspect ratio locking
  • Callbacks for selection done, or while moving
  • Keyboard support for nudging selection
  • Support for CSS styling
  • Advanced API including animation support

Die Demos sehen gut aus und es gibt auch ein Tutorial wie sich der ausgewählte Bereich serverseitig mittels PHP und GD verarbeiten lässt.

Bilder in Drupal

drupaltherapy zeigt wie sich mit cck, views, imagecache und image api flexibel Bilder in Drupal verwalten lassen.

Image Resize mit TimThumb PHP Script

TimThumb ist ein PHP basiertes Image Resize Skript - ursprünglich teil von Mimbo Pro


<img src="/scripts/timthumb.php?src=/images/whatever.jpg&h=150&w=150&zc=1" alt="" />

TimThumb akzeptiert folgende Parameter:

  • w: width
  • h: height
  • zc: zoom crop (0 or 1)
  • q: quality (default is 75 and max is 100)


Copyright © 2004–2009. All rights reserved. – Impressum

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.