[Bins] gallery cleanup script

Jochen Schaeuble psionic at psionic.de
Sun Mar 2 18:32:12 GMT 2003


Hi,

> 
> Only filenames ending with .jpg and .jpg.xml are tested, but some
> images can use other extensions. Here are the graphic formats that
> bins recognizes to be published on the Web :
>

<*** snip ***>
> 
> So, perhaps you can test for jpg, jpeg, gif and png. This could detect
> most of the files to be removed. Most, because there is another
> problem : bins handles others formats in the source directory :
>
<*** snip ***>

Ok, I will add this one.
> 
> So, an image can have a .jpg extension in the dest directory but
> another one in the source one. It becomes difficult when two files use
> the same name with two different extensions, like picture.jpg and
> picture.tiff. Well, bins doesn't handle that, but it should ;-)
> For now, just replacing the extension of the source image not in
> webFormats by .jpg to test it in the dest dir should be OK.
> 
> I've also noticed that the script deletes static.* directory, which
> isn't in the source directory but in the templates directory.
> 
Ok, I try to fix this one. Maybe the cleanup-script should be run before
the gallery is created. This would update the static directory.

Greets,
  Jochen



More information about the Bins mailing list