News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

HELP- Resizing pics!

Started by harmzz, January 21, 2004, 02:32:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

harmzz

ok i uploaded images about 5000! over the last few months

they were 800*600 now they taking up about 300mb

also i had done the site is 660 wide so therefore intermidate pics was clicked on for easier viewing and was 640*480

i revied the stats and there no need for the pics to be 800*600

therefore i only require them to be 640*480

the orignal file name is something like

IMGP5297 (Medium).JPG =800*600

normal_IMGP5297 (Medium).JPG=640*480

now if i delete 640*480 one i.e. normal_IMGP5297 and resize and rewrite IMGP5297 (Medium).JPG  so its 640*480 works fine but then u can still click on it to make it 800*600 and bcos its resizedit enlarges the image and  looses quality and looks tacky!

so therfore is there easy way or doing this at all!

as it taking alot of sql space too!

or would be easier somehoe disabling new pop up window when u click an image for full view!

help apperciated thanks
 :D

Joachim Müller

I don't fully understand what you're trying to say, please re-post your question, using single, proper sentences (what you do want? What do you have?).
Post a link to your page as well...

GauGau

harmzz


harmzz

:oops: oppsy think me need some sleeeeep

ok let me try this again

ok i got 5000 pics curretnly on my site.... they are 800*600
but i have intermidate pic settings on.. settings for that is 640*480
so basically its wasting alot of space

and now i just want the image as 640*480

so basically i can overwrite the 800*600 with the new 640*480 image via ftp same filenames and all

but then want to delete the intermidate pics created by coppermine!

the only solution i seen is to back up the pictures table.

The soultion i came up with is

upload the pics fresh. delte all the old ones but in the pic talbe the pid i.e. picture id will be different and the caption  ... so therefore need sql or php to update these fields from the old table to the new  :roll: is that any clearer  :shock:  :)

Casper

I've never used version 1.1, so I'm not sure tha it has the 'resize pictures' facility, but if it has, you can use this to delete the original size pics, and coppermine just uses the intermediate ones then.

If version 1.1 doesn't have the facility, I suggest you upgrade to version 1.2.1
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

Joachim Müller

if you don't want to upgrade your whole gallery (although upgrading is strongly recommended), you can just use the file "util.php" from the cpg1.2.1 package, put it into your coppermine folder and run it in your browser like this: http://yourdomain.com/coppermine/util.php

GauGau