Ticket #156 (closed Task: fixed)

Opened 14 months ago

Last modified 10 months ago

Make a better image library

Reported by: zombor Owned by: Shadowhand
Priority: blocker Milestone: 2.1
Component: Libraries:Image Version: SVN HEAD
Keywords: image library Cc:

Description

The current one sucks. It should be driver based to use different engines like GD and Image Magick.

Syntax to be decided.

Change History

Changed 14 months ago by zombor

  • type changed from Bug to Task
  • summary changed from Make a "not craptacular" image library to Make a better image library

Changed 13 months ago by jonathangordon

Here are some tips on transparent image tricks with GD2 so you can make bland and work with transparent PNG files and suck.

Of particular interest are imagecreatetrucolortransparent(), and blankpng().

http://forums.devnetwork.net/viewtopic.php?p=233028

Read around.

Changed 12 months ago by Shadowhand

  • version set to SVN HEAD

Changed 11 months ago by Shadowhand

  • priority changed from major to blocker

Changed 11 months ago by gregmac

  • component changed from Core to Libraries

Changed 11 months ago by gregmac

  • component changed from Libraries to Libraries:Image

Changed 11 months ago by Lick

I was thinking of an object-oriented approach using an Image base class. The main uses of an image library would be the following: 1) generation of captchas 2) rendering of text-images (like a custom-font paragraph header) 3) resizing/cropping of photos (like forum avatars)

So if we'd provide a simple Image base class, from which CaptchaImage/TextImage/PhotoImage? could derive, that would simplify the API for each class.

Not sure if this would fit in KohanaPHP's design.

Changed 10 months ago by Shadowhand

  • owner set to Shadowhand
  • status changed from new to assigned

Changed 10 months ago by Shadowhand

r1830 is the first functional GD driver. Please test!

Changed 10 months ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to fixed

Fully working GD driver added in r1849.

Note: See TracTickets for help on using tickets.