Code

Weck - Image Handler Class

Weck - Image Handler Class

Weck – class which makes working with images easier. It can resize image, place watermark and use cache system to optimize speed. It can handle unlimited number of images in a single iteration. Easy modify class with comments and documentation. Has logging system for recording events or debugging. Compatible with any php framework, can be used in any php system. It is processing only PNG and JPEG formats. Demo version included, it has comments and documents to.

Features:

  • Resize
    You can easy resize image to any dimension you need. Original uploaded image will be stored untouched so you always can manipulate with output as you wont.
  • Flip
    You can easy flip image vertically, horizontally or in both directions.
  • Rotate
    You can easy rotate image at any degree you wont.
  • Opacity
    You can control opacity of your image via alpha channel or background.
  • Converter
    You can output image format to PNG or JPEG no matter what was original format.
  • Compressor
    You can JPEG format quality and reduce file size.
  • Frame
    Wrap your images in a frames to apply a single style to all visual content.
  • Auto-caching
    Class will automatically creates cache from processed images, so you system will be work fast and will not be wasting time processing image again in each output request.
  • Watermark
    You can place watermark image above the main image. Define size and position by your self. Again, original is saved so you can create any combinations you need.
  • Text
    You can write texts on the image. Place them in any position and choose color, size and even connect your unique font.
  • Multiple Images
    You can process unlimited amount of images in a single request, as much as your server capable to handle.
  • Compatibility
    As any PHP class, this one is compatible with any PHP system as well. You can connect it to any framework, configure following documentation and start to use.
  • Logging
    To help you monitor images actions or debug code Image Handler have logging system that will write down current events.
  • Managing
    Also you have bunch of functions that allowing you to easily manage cache and log mechanisms.
  • Easy modify
    Class have good comments and logic structure, short notice and contacts. This will allow your programmer easy to modify functionality. Please, fill free to mail me.

Read Documentation
by
by
by
by
by
by