Support Forums

Old 05-30-2007, 08:00 PM   #1
Junior Member
 
Join Date: May 2007
Posts: 14
Rep Power: 7
bikesource is on a distinguished road
Default Ability to ingest image from URL

Hi Guys,

As a quick suggestion, I though it might be cool if as well as uploading an image, from a local machine, there was also the ability to ingest an image (via curl perhaps) for ads if people already have them on the web.

Not sure how easy this would be, but I think it would be a very useful feature (especially when ingesting many images)

Cheers

T.
__________________
v3.1.7 Developer
bikesource is offline   Reply With Quote
Old 06-01-2007, 10:33 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 3,866
Rep Power: 94
Lhotch is just really niceLhotch is just really nice
Default

Im not sure I understand what you mean by "ingest the image", can you elaborate a little bit?
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 06-01-2007, 11:00 AM   #3
Junior Member
 
Join Date: May 2007
Posts: 14
Rep Power: 7
bikesource is on a distinguished road
Default

Quote:
Originally Posted by Lhotch View Post
Im not sure I understand what you mean by "ingest the image", can you elaborate a little bit?
Example... I have a website with pictures of my item for sale, which I've already put up for perhaps an ebay auction. I really don't want to download the image again, simply to upload it. I want to do one of two things

1. Give it a remote url to pull the image from everytime the ad is displayed (thereby removing the 1MB max image size)

or

2. Give it a remote url to cURL or wget retrieve on to the server.

Does this help to clarify?

Cheers

T.
__________________
v3.1.7 Developer
bikesource is offline   Reply With Quote
Old 06-01-2007, 11:03 AM   #4
Junior Member
 
 
Join Date: Apr 2007
Location: Lancashire, UK
Posts: 15
Rep Power: 8
Digbydo is on a distinguished road
Default

now I may well be guessing or even pretending to be a mind-reader so apologies in advance but some applications allow images to be uploaded (imported) from other sites or from existing images on your server.

Gallery (menalto), for instance, from a web page:
Quote:
Import files into Gallery from another website. Enter a URL below to a web page anywhere on the net and Gallery will allow you to upload any media files that it finds on that page. Note that if you're entering a URL to a directory, you should end the URL with a trailing slash (eg, http://example.com/directory/).
and from your server:
Quote:
Transfer files that are already on your server into your Gallery. The files must already have been uploaded to your server some other way (like FTP) and must be placed in a directory where they are accessibly by any element on the server. If you're on Unix this means that the files and the directory the files are in should have modes of at least 755.
As I say, just an idea.... could be something completely different
__________________
Dave
v3.1.7 Developer
Digbydo is offline   Reply With Quote
Old 06-01-2007, 12:27 PM   #5
Moderator
 
 
Join Date: Mar 2006
Posts: 3,866
Rep Power: 94
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by bikesource View Post
Example... I have a website with pictures of my item for sale, which I've already put up for perhaps an ebay auction. I really don't want to download the image again, simply to upload it. I want to do one of two things

1. Give it a remote url to pull the image from everytime the ad is displayed (thereby removing the 1MB max image size)

or

2. Give it a remote url to cURL or wget retrieve on to the server.

Does this help to clarify?

Cheers

T.
Ok, I follow ya. I can see allowing a URL to download the image from but I think if your just looking to store the image URL so you can point to it later your setting yourself up for problems.

If your linking directly to someone elses site(ie not you own web space etc) to display your images hosted there, its bad form (ie bandwidth stealing) and more and more places are implementing hotlink protection to prevent just this type of thing.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 06-01-2007, 05:11 PM   #6
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,150
Rep Power: 58
juven14 is a jewel in the rough
Default

I have a class that does this, all you would have to do is something like this:

Create a form to take the url, title, and order. Then pass these and the listing id to the class like this:

PHP Code:
include(class.php);
$img = new Class($title$url$order$listingid);
$img->createImage(); 
Done.

I've removed a bunch of code that surrounded this class so it is possible it has a few bugs. If you are willing to sort out any bugs and do the work send me a PM and I will email you the class.
__________________
Regards,

John Snyder
TemplateCodes.com


�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
juven14 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Browse error CHRD v3.1 Questions & Support 1 02-16-2007 03:28 PM
Question regarding listing image popup sizing civ v3.1 Questions & Support 5 10-12-2006 06:47 AM
Image size in view listing Red v3.1 Questions & Support 12 08-16-2006 06:12 PM
more large image errors frosty v3.1 Questions & Support 2 05-17-2006 12:28 PM
Display an image over another image Bucketman v3.0 Questions & Support 2 04-21-2006 12:27 PM


All times are GMT -4. The time now is 08:18 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0