[Bins] number in filenames

Jérôme SAUTRET jerome at sautret.org
Sun Mar 2 14:36:16 GMT 2003


On Sun, Mar 02, 2003 at 01:21:37AM +0000, Chris Croome wrote:
> 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.jpg.large.html
>   /example.jpg.large.jpg
[...]

Yes, it can be a good solution. But in most cases (say 95%...), .jpg
will appears twice in the filename. But it doesn't shock me very
much...

> 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). 

Yes, I've already wrote that in the TODO (maybe not in the one in
1.1.20) :

- copy the origninal image to the destination album, with a link in
the HTML, if it is not already there (same source & destination size,
scaleIfSameSize=0 and no rotation).


-- 
Jérôme SAUTRET (Jerome at SAUTRET.org)           http://SAUTRET.org
Key 0x95D463F3 fingerprint 3B69 3B60 4D32 B8DF 2BF3 8035 5036 D41A 95D4 63F3



More information about the Bins mailing list