\PixelCraft

PixelCraft is a lightweight PHP library designed for easy image processing using the GD lib.

With PixelCraft, you can perform basic image operations such as resizing, cropping, drawing of watermarks, and format conversion.
The library is characterized by its user-friendly interface and minimal code footprint,
allowing for quick and efficient image processing in PHP projects.

Synopsis

class PixelCraft {
}

Members

protected

  • $brushGDimage
    Contains currently loaded brush image
  • $colorPalette — array
    Contains array of custom RGB colors palette as name=>color
  • $colorsAllocated — array
    Contains already allocated image colors as name=>colorInt
  • $font — string
    TTF font path
  • $fontSize — int
    Font size in pt.
  • $imageGDimage
    Contains image copy to perform some magic on it
  • $imageHeight — int
    Contains loaded image original height
  • $imageType — string
    Contains loaded image mime type
  • $imageWidth — int
    Contains loaded image original width
  • $lineWidth — int
    Drawing line width in px
  • $quality — int
    Contains image rendering quality
  • $watermarkGDimage
    Contains watermark image copy

Methods

protected

public