forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: nickfzx on March 04, 2007, 07:38:20 pm

Title: sizing up thumbs
Post by: nickfzx on March 04, 2007, 07:38:20 pm
Hey

so i would like to enlarge all the thumbs on my site from 100 pixels to around 180 pixels.

I have tried this out on a coppermine install and it works perfectly...thanks stramm for his modpack otherwise this would have taken ages.

What I have found though is that all the images are enlarged but they stay at 100 pixels and appear pixelated as the browser had cached all the previous thumbnails and is still using them.  If I reloaded the page a few times or flushed the browsers cache then the thumbnails re-load at their larger size.

This I know is not a Coppermine specific problem.   But there may be a solution.  Is it possible to change the name of the directory where all the albums are kept?  this way the browser will treat the new thumbnails as new files as they aren't in the same directory.

Is there another way round this problem?
Title: Re: sizing up thumbs
Post by: nickfzx on March 04, 2007, 07:45:06 pm
sorry I found out that it is easy to rename the album directory.

is there another way of doing this without needing to rename a directory?
Title: Re: sizing up thumbs
Post by: nickfzx on March 06, 2007, 02:29:37 am
sorry to post again but I have a quick question relating to the above two posts.

What are the disadvantages to changing the name of your album directory...apart from the obvious one that all external links to image files and bookmarks to image files will become void.

It says in the configuration that:

"These settings mustn't be changed if you already have files in your database."

What is the reason for this?

I might want to do this and want to be sure that I am not going to run into hidden problems.
Title: Re: sizing up thumbs
Post by: Nibbler on March 06, 2007, 02:34:59 am
That's because you have to move/rename the albums folder yourself (outside of Coppermine). You can set up a redirect or rewrite rule to fix broken links.
Title: Re: sizing up thumbs
Post by: nickfzx on March 06, 2007, 02:40:23 am
ah ok, so there is no real reason why this shouldn't be done as long as I just manually rename the albums folder to the new name?

( thanks for the tip on the redirect rule...I imagine this will be quite easy to figure out and not really a job for the coppermine forum so I won't ask )