Gunter wrote:
Hello,
I did some research on image handling and also on image deletion.
While putting some information in the article Oldimage_table, I wrote
the additional note:
Note: MediaWiki does not keep all revisions of the pictures like it does
with articles. You can delete each revision on the image page. If you
delete the image article, all images (revisions) are permanently
deleted. You can restore the image article, but not the image.
This has been immediatly deleted by Bryon Vibber as false.
Just deleting the text does not really help, as this is the actual
behavior of MediaWiki.
In the lack of more information I startet a new article which IMO should
become part of the MediaWiki documentation:
http://beadsoft.net/wtest/index.php?title=MediaWiki_Image_Handling
I would like to ask the admins, where to put it and also enlighten me of
my mistake.
regards,
gunter
Image revisions are kept if $wgSaveDeletedFiles = true (default is false).
I copy from DefaultSetting.php
/**
* By default deleted files are simply discarded; to save them and
* make it possible to undelete images, create a directory which
* is writable to the web server but is not exposed to the internet.
*
* Set $wgSaveDeletedFiles to true and set up the save path in
* $wgFileStore['deleted']['directory'].
*/
$wgSaveDeletedFiles = false;
---
On your wiki you talk about
"MediaWiki creates several subfolders in the folder images: x/xx, where:
* x: 0 to F
* xy: with x equals the x of the upper folder and y: 0 to F.
This is probably a hash of the filename."
This subfolders only appear if you have $wgHashedUploadDirectory = true
(default).
xy are the two first characters of the md5 hash of the final image filename.