Copying remote online pictures Copying remote online pictures
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Copying remote online pictures

Started by Lacks, February 02, 2004, 06:51:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lacks

Aside from copyright issues, here's a question that I've been asked by one of my users. A little background first: I'm using CPG as a hosting system, like PictureStage and PhotoIsland, and the people using it (it's in beta, while I'm sorting out little gimmicks like these) are members of a news-related website where one is allowed to add comments to news stories. Said comments can include links and, of course, pictures.
Pictures are mostly deep-linked from their source, resulting in huge bandwidth-load on the server that hosts the picture in question. To prevent this, I've had the request of adding a 'remote upload' to the CPG, allowing for a remote image to be copied to the user's CPG album.

The remote copying utility, I have, working flawlessly outside of CPG... in order to integrate it, I need to:

- create a thumbnail and preview image
- update the database

The second part is what puzzles me most... we're not talking about batch uploads, or FTP, but placing an image (either by means of an intermediate location or directly) into the user's album folder, and updating the database accordingly.

Is there an easy way to achieve an action like this?