Resize Full Size? Resize Full Size?
 

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

Resize Full Size?

Started by wenzday01, March 16, 2004, 06:36:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wenzday01

I've been searching the forums high and low for the past hour or so, and I can't seem to find a solution to my problem.

I've uploaded pics to my photo album, but I've decided that I want the maximum dimension of a full size to be 800px instead of the current 500px.  I tried to overwrite the file that I had, but when I clicked for the full size pop-up, all I got was a compressed version of my new file (800px is compressed to fit a 500px frame).  Is there any way to resize the pop-up window?

I would really appreciate it if anyone can help. Thanks.

Joachim Müller

change the setting in coppermine config first. Then use "resize pictures" from the admin menu. If a pic is only available in 500*x in the first place, you can't blow it up to have 800*x. Replacing the file on the server (albums directory) will only replace the pic, but not the db entry.

GauGau

wenzday01

I've already done what you said, but my new 800*x only fills up a 500*x window frame.  So how do I change the db entry?

Joachim Müller

give a deep link to the pic in question (and a user name and password if necessary).

GauGau

wenzday01

Here are three of them:

http://www.thismorning.org/photo//displayimage.php?pos=-869
http://www.thismorning.org/photo//displayimage.php?pos=-868
http://www.thismorning.org/photo//displayimage.php?pos=-866

Casper

How many pics did you replace.  
The problem is you replaced the original with bigger copies, but the database thinks they are the size you originally uploaded, so that is the size it displays.
You are going to have to update the size details for each pic you changed.
To do this, you need to use your database tool, i.e., phpMyAdmin, and edit them in the pictures table.

If you did all the pics, and they were and are now all the same size, there is probably a single query you can use to do it in one go, but I'm no mysql guru.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

wenzday01

Thanks for your reply.  I looked through phpMyAdmin and changed the width and height in the database.

And I know that this isn't a mysql forum, but I was wondering if there's anyway to change it for all my pictures at once.

Joachim Müller

If all the pics are the same size, you could run a query in phpMyAdmin like this
QuoteUPDATE `cpg11d_pictures` SET `pwidth` = '600', `pheight`='800' WHERE `aid` = '23';
orange: you might have to change this to match your coppermine table prefix
red: change this to the album number the pics are in.

You may as well replace the WHERE clause with another db field as criteria (e.g. Filepath or something). As this will run through your whole database in one go, be sure to make a backup of your db before experimenting with it! If you don't feel comfortable with mySQL queries, I suggest you don't mess with it at all...

GauGau

Zeitgeist

That command just helped me out a lot, thanks
I love GauGau!