coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: mika2k3 on November 05, 2003, 04:13:44 PM

Title: How to delete intermediate size pictures ?
Post by: mika2k3 on November 05, 2003, 04:13:44 PM
Hi,

I don't use the intermediate pictures anymore. How can i delete them to gain disk space ?

Thanks in advance for your response,

Mika.
Title: How to delete intermediate size pictures ?
Post by: Joachim Müller on November 05, 2003, 05:39:18 PM
take a look into "resize pictures" in admin menu (disable the creation of intermediates in config before).

GauGau
Title: How to delete intermediate size pictures ?
Post by: mika2k3 on November 05, 2003, 09:07:37 PM
I don't find what i want...

there is "Delete original size photos" or "Delete titles" or "update thumbnail" or "upade full sized pictures" but nothing like "delete intermediates pictures..."

Help please.
Title: How to delete intermediate size pictures ?
Post by: Joachim Müller on November 05, 2003, 11:03:21 PM
hm, you could always delete the files called "normal_XXX.jpg", but that's probably not what you had in mind...

GauGau
Title: How to delete intermediate size pictures ?
Post by: mika2k3 on November 06, 2003, 05:06:14 PM
Ok ...

... can you explain how Cpg use the " albums/ " directory !?

I have 141 folders (for 175 pictures) with stranges names like wpw-01, wpw-05, wpw-32, wpw-fd ...

(i use the xp wizard to publish my pictures).

... is there a way to easily find and destroy all intermediates pictures ?

Thanks,
Michael.
Title: How to delete intermediate size pictures ?
Post by: Joachim Müller on November 06, 2003, 06:58:40 PM
the intermediate files are stored together in the same folder as the fullsize pics and the thumbnails - they just differ by prefix. Be default, the prefix is "normal_" (but can be changed in config). This means: if you uploaded foobar.jpg as fullsize pic, you'll find in the same folder a file called thumb_foobar.jpg and normal_foobar.jpg. If you set in the config that you're not going to have intermediates anymore, you can savely go through the folders and delete all files called "normal_*.jpg" (you could of course write a little php script that'll do this job for you).

GauGau
Title: How to delete intermediate size pictures ?
Post by: wormie_dk on November 06, 2003, 10:25:18 PM
If you disable intermediate pictures in the config you can safely delete all pics starting with normal_

If it is a general wish I could add an option to delete intermediate pictures  :)
Title: How to delete intermediate size pictures ?
Post by: mika2k3 on November 06, 2003, 11:29:58 PM
Ok Gaugau, but can you explain why i've so many folders !!

i've send my 175 pictures in 3 or 4 times, using Xp Wizard and Cpg has created 141 folders !?

Thanks,
Michael.
Title: Replie to Wormie_dk
Post by: mika2k3 on November 06, 2003, 11:33:02 PM
I think i'll be great to add this to "resize pictures" module !

And a function to clean the "albums" folder : it'll search for any orphan picture (a normal_ or thumb_ picture "alone" ) !!

I'm not a good programmer but i guess that it will be easy for a programmer like you !  :wink:
Title: How to delete intermediate size pictures ?
Post by: wormie_dk on November 06, 2003, 11:51:17 PM
Quote from: "mika2k3"Ok Gaugau, but can you explain why i've so many folders !!

i've send my 175 pictures in 3 or 4 times, using Xp Wizard and Cpg has created 141 folders !?

Thanks,
Michael.
See here  http://forum.coppermine-gallery.net/index.php?topic=1052&highlight=
Title: SOLVED !!
Post by: mika2k3 on November 07, 2003, 12:46:41 AM
Ok, thanks for that !!

BUT ...  :oops:

It there a way to move pictures from a folder to another one ... whitout lost informations in Cpg ?

Thanks,
Mika.
Title: How to delete intermediate size pictures ?
Post by: Joachim Müller on November 07, 2003, 08:29:06 AM
this has been discussed a million times over: the database keeps track of your pics, the human doesn't have to. Coppermine let's you move pics, albums, categories (inside the database). The files stay where they are. We (the dev team) won't support moving files untill somebody comes up with a real good explanation why it should be necessary.

In other words: no, there's no such feature, and there probably won't be such a feature in the future.

GauGau
Title: How to delete intermediate size pictures ?
Post by: mika2k3 on November 07, 2003, 10:23:31 AM
Ok  i've understood !

Thanks a lot for your suppot and a long life to Cpg !!!!  :lol:

Mika.
Title: How to delete intermediate size pictures ?
Post by: harmzz on January 21, 2004, 08:33:26 PM
Quote from: "mika2k3"I don't find what i want...

there is "Delete original size photos" or "Delete titles" or "update thumbnail" or "upade full sized pictures" but nothing like "delete intermediates pictures..."

Help please.

ermmm sorrry to have blonde moment but where are these features!  :roll:  :(
Title: How to delete intermediate size pictures ?
Post by: Casper on January 21, 2004, 08:42:23 PM
in the 'resize pictures' utility, which you can get to from the admin menu.