get images onto server

Asked by seo4theweb

how hard do you think it would be to get images from the article. possible to make use of a script like GD library ?

great work you have done so far!

Question information

Language:
English Edit question
Status:
Solved
For:
Five Filters Edit question
Assignee:
No assignee Edit question
Solved by:
Keyvan
Solved:
Last query:
Last reply:
Revision history for this message
Keyvan (keyvan) said :
#1

Are you talking about the full text RSS code or PDF newspaper? The PDF library used in RSS to PDF Newspaper can already grab images and embed them in the PDF. If you're talking about the full text RSS service, then it's possible but you'd have to write code to go through the retrieved HTML and fetch images whenever an img element is found. You don't need GD unless you want to manipulate the images in some way.

Hope that's some help.

Revision history for this message
seo4theweb (seo4theweb) said :
#2

thanks for response... yea i was talking about the full text service.Could whatever you use in the pdf newspaper be integrated into the full text service to grab images. Or do you know of any scripts i could look at to intergrate?

thanks again

Revision history for this message
Best Keyvan (keyvan) said :
#3

I don't know of any existing scripts that do this. I personally don't see any use for it in the full text service so I don't think I'll be integrating it. It's needed in the PDF service because the images have to be downloaded before they can be embedded in the PDF. I think if you were going to implement this you'd need to go through all img elements, retrieve the images and store them somewhere on disk, rewrite the URL so it points to the new location of the image instead of the original source.

Revision history for this message
seo4theweb (seo4theweb) said :
#4

Thanks k1m, that solved my question.