Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GD2-ImageMagick bridging library 1

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR

Hi,

Do you guys think it's possible to find an existing PHP library offering the same image manipulation functions that work regardless of what module is installed on your server?

Thanks :)
 
at a very basic level, this is easy. you write code for both libraries, duplicating each function with suitably abstracted function names.

store each set of duplicates in a separate file.

use something like function_exists() to determine which abstracted set to load.

i found this in google which may help with the creation of the set of abstracted functions;


i do not know of any currently available abstraction layer that crosses libraries but do share whatever it is that you come up with.
 
Hi Jpadie :)

On another forum I got directed toward
But the problem I see with PHPthumb is that lots of features are marked "only works with GD".

I'm pretty sure ImageMagick can do everything GD does, so I don't get why those features only work with GD.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top