forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Templarart on March 03, 2008, 02:19:30 am

Title: Saving thumbnails into different directory
Post by: Templarart on March 03, 2008, 02:19:30 am
Could someone please tell me which function of which file saves thumbnails when a file is uploaded?

I just want to save a copy of the thumbnail to a different directory so I assumed that once I found the line that saved the thumb I could just add another line saving the same thumb in a different directory.

I've been looking through the code for hours and just thought I'd ask for help.

Thanks!
Title: Re: Saving thumbnails into different directory
Post by: Joachim Müller on March 03, 2008, 08:21:39 am
include/picmgmt.inc.php contains the code you're looking for. You'll have to understand what coppermine does: the resized image gets created within the edit folder first. After successfull creation, it get's moved to the target folder. You'll have to look into the function that performs that move after the creation.
Title: Re: Saving thumbnails into different directory
Post by: Templarart on March 04, 2008, 12:24:33 am
Thank you - I'll try to figure that out!  :)
Title: Re: Saving thumbnails into different directory
Post by: opulence on March 21, 2008, 10:43:06 pm
I would like thumbnails saved into a different directory as well... reason why is I want to give non-users access to view thumbnails, but by using Paver's plugin, restrict them from viewing full size pictures.  Unfortunately all someone would have to do is look at the thumbnail URL and remove thumb_ and they will be taken to the full size image without registering.  Unfortunately unlike the OP I doubt I would be able to code this myself....