PHP Developers Network

Inline images
Page 1 of 1

Author:  bozlax [ Sun Nov 18, 2007 10:52 am ]
Post subject:  Inline images

Does anybody have a good tool for [edit]modifying images in-line[/edit]? I'm trying to use gdlib with php, but the fills in gd don't seem to be very good. I've tried flydraw from a command-line, but can't get the copy() function to load an external file (it always gives me "file not found" errors).

Any suggestions?

Author:  feyd [ Sun Nov 18, 2007 10:53 am ]
Post subject: 

What do you define as "inline images"?

Author:  bozlax [ Sun Nov 18, 2007 11:28 am ]
Post subject:  Scratch this one

Onion helped me resolve the issue with gd, so this thread is moot, but what I'm trying to do is alter a stored image from within a php script.

Author:  feyd [ Sun Nov 18, 2007 11:43 am ]
Post subject: 

What specific problem are you having in doing so?

Author:  bozlax [ Sun Nov 18, 2007 2:24 pm ]
Post subject: 

The specific problem in my project was that imagefill() (in gdlib) wasn't filling all the way to the borders of an irregular area drawn in Gimp. The solution was that I needed to save the image as a PNG rather than JPEG. After re-filling the area with white in Gimp and saving it as PNG, imagefill worked perfectly.

The specific problem I was having with flydraw in trying to solve the above problem is that copy() wouldn't load the image from disk. Since the problem can now be solved in PHP, tho, I'm not worrying about flydraw any more.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group