[Bins] number in filenames

Chris Croome chris at croome.net
Sun Mar 2 01:21:37 GMT 2003


Hi

On Sat 01-Mar-2003 at 10:03:14PM +0100, Jérôme SAUTRET wrote:
> 
> Does anybody see a solution simple _and_ elegant ? ;-)

I'd do it by always just adding to the original file name.

For example if the starting directory has:

  /example.png
  /example.jpg

The files generated by bins could be:

  /example.png.large.html
  /example.png.large.jpg
  /example.png.medium.html
  /example.png.medium.jpg
  /example.png.small.html
  /example.png.small.jpg
  /example.png.thumbnail.jpg

  /example.jpg.large.html
  /example.jpg.large.jpg
  /example.jpg.medium.html
  /example.jpg.medium.jpg
  /example.jpg.small.html
  /example.jpg.small.jpg
  /example.jpg.thumbnail.jpg

I'd also copy the original image into the directory since all
generated images are lossy (except when the original is copied
across as the large image). 

Chris

-- 
http://chris.croome.net/  



More information about the Bins mailing list