Lior
Lior

Reputation: 5664

Is it possible to use the GD Library with actual images?

I'd like to use the GD Library with actual images - BLOBs from a mysql database.
Can it be done? If so, how?

Thanks.

Upvotes: 0

Views: 44

Answers (1)

Pekka
Pekka

Reputation: 449395

Yes, using imagecreatefromstring().

It accepts an image as string data, auto-detects its type (as long as it's supported of course) and creates a GD resource based on it.

Upvotes: 3

Related Questions