PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Sep 22, 2019 9:49 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Inline images
PostPosted: Sun Nov 18, 2007 10:52 am 
Offline
Forum Newbie

Joined: Tue Nov 13, 2007 5:51 pm
Posts: 7
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 10:53 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
What do you define as "inline images"?


Top
 Profile  
 
 Post subject: Scratch this one
PostPosted: Sun Nov 18, 2007 11:28 am 
Offline
Forum Newbie

Joined: Tue Nov 13, 2007 5:51 pm
Posts: 7
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 11:43 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
What specific problem are you having in doing so?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 2:24 pm 
Offline
Forum Newbie

Joined: Tue Nov 13, 2007 5:51 pm
Posts: 7
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group